{ return self::$version; } public function set_version( $version ) { self::$version = $version; } /** * Register all of the hooks related to the dashboard functionality * of the plugin. * * @since 1.0.0 * @access private */ public static function define_admin_hooks() { if ( current_user_can( 'manage_options' ) ) { $plugindir = plugin_dir_path(dirname(__FILE__)); require_once $plugindir . 'includes/class-wpf-list.php'; require_once $plugindir . 'admin/class-wpf-admin.php'; new WPF_Admin(self::$plugin_name, self::$version); } } public static function get_option() { if (!isset(self::$options)) { self::$options = new WPF_Options(self::$plugin_name, self::$version); } return self::$options; } /** * Returns current plugin version. * * @return string Plugin version */ public static function get_plugin_version($plugin_url) { return get_file_data($plugin_url, array('Version'))[0]; } public static function plugins_compatibility() { $plugins = array( 'PremiumAddonsForElementor' => defined( 'PREMIUM_ADDONS_VERSION' ), 'wooPayments' => defined( 'WCPAY_ABSPATH' ), ); $plugindir = plugin_dir_path(dirname(__FILE__)); foreach ( $plugins as $plugin => $active_check ) { if ( $active_check === true ) { include( $plugindir . '/includes/plugin-compat/' . $plugin . '.php' ); $classname = "Themify_WPF_Plugin_Compat_{$plugin}"; $classname::init(); } } } }
Fatal error: Uncaught Error: Class "WPF" not found in /htdocs/wp-content/plugins/themify-wc-product-filter/themify-wc-product-filter.php:54 Stack trace: #0 /htdocs/wp-content/plugins/themify-wc-product-filter/themify-wc-product-filter.php(22): run_wpf() #1 /htdocs/wp-settings.php(522): include_once('/htdocs/wp-cont...') #2 /htdocs/wp-config.php(78): require_once('/htdocs/wp-sett...') #3 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #4 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #5 /htdocs/index.php(17): require('/htdocs/wp-blog...') #6 {main} thrown in /htdocs/wp-content/plugins/themify-wc-product-filter/themify-wc-product-filter.php on line 54