heck_product_argument', ), 'action' => array( 'description' => __( 'Production action to execute', 'jetpack-my-jetpack' ), 'type' => 'string', 'enum' => array( 'activate', 'deactivate' ), 'required' => false, 'validate_callback' => __CLASS__ . '::check_product_argument', ), 'slug' => array( 'title' => 'The product slug', 'type' => 'string', ), 'name' => array( 'title' => 'The product name', 'type' => 'string', ), 'description' => array( 'title' => 'The product description', 'type' => 'string', ), 'status' => array( 'title' => 'The product status', 'type' => 'string', 'enum' => array( 'active', 'inactive', 'plugin_absent', 'needs_purchase', 'needs_purchase_or_free', 'error' ), ), 'class' => array( 'title' => 'The product class handler', 'type' => 'string', ), ), ); } /** * Extend actions links for plugins * tied to the Products. */ public static function extend_plugins_action_links() { $products = array( 'backup', 'boost', 'crm', 'videopress', // we use videopress here to add the plugin action to the Jetpack plugin itself ); foreach ( $products as $product ) { $class_name = self::get_product_class( $product ); $class_name::extend_plugin_action_links(); } } }
Fatal error: Uncaught Error: Class "Automattic\Jetpack\My_Jetpack\Products" not found in /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php:66 Stack trace: #0 /htdocs/wp-content/plugins/jetpack/class.jetpack.php(985): Automattic\Jetpack\My_Jetpack\Initializer::init() #1 /htdocs/wp-includes/class-wp-hook.php(324): Jetpack->late_initialization('') #2 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /htdocs/wp-settings.php(506): do_action('plugins_loaded') #5 /htdocs/wp-config.php(98): require_once('/htdocs/wp-sett...') #6 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #7 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #8 /htdocs/index.php(17): require('/htdocs/wp-blog...') #9 {main} thrown in /htdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php on line 66