load_textdomain(); $this->wdkit_load_dependencies(); } /** * Load Text Domain. * On WP 6.7+ core auto-loads translations via the plugin header; the * manual call is only needed for WP 6.0–6.6. */ public function load_textdomain() { if ( version_compare( get_bloginfo( 'version' ), '6.7', '<' ) ) { load_plugin_textdomain( 'wdesignkit', false, WDKIT_BDNAME . '/languages/' ); } } /** * Load the required dependencies for this plugin. * * - Wdesignkit_Admin. Defines all hooks for the admin area. * - Wdesignkit_Public. Defines all hooks for the public side of the site. * * @since 1.0.0 */ private function wdkit_load_dependencies() { /** * The class responsible for defining all actions that occur in the admin area. */ require_once WDKIT_INCLUDES . 'admin/white_label/class-wdkit-white-label.php'; require_once WDKIT_INCLUDES . 'admin/notices/class-wdkit-notice-main.php'; require_once WDKIT_INCLUDES . 'admin/hooks/class-wdkit-dashboard-main.php'; require_once WDKIT_INCLUDES . 'admin/class-wdkit-enqueue.php'; require_once WDKIT_INCLUDES . 'admin/class-wdesignkit-data-query.php'; require_once WDKIT_INCLUDES . 'admin/class-wdkit-depends-installer.php'; // Must load before widget-load-files.php: the Gutenberg/Gutenberg Core loaders // register their widgets synchronously in their own constructor (not on a later // hook), so wdesignkit_get_widget_registry() has to already be defined by the // time widget-load-files.php requires and instantiates them below. require_once WDKIT_INCLUDES . 'abilities/class-wdk-ability-main.php'; // WordPress 7.1 ability execution lifecycle hooks. Inert on older versions // (the hook names simply do not exist), so it is loaded unconditionally. require_once WDKIT_INCLUDES . 'abilities/class-wdk-ability-lifecycle.php'; require_once WDKIT_INCLUDES . 'widget-load/widget-load-files.php'; require_once WDKIT_INCLUDES . 'widget-load/dynamic-listing/dynamic-listing.php'; } } Wdkit_Wdesignkit::get_instance(); }