Automattic\WooCommerce\Internal\Features
FeaturesController::init_features()
Method of the class: FeaturesController{}
No Hooks.
Return
null
. Nothing (null).
Usage
$FeaturesController = new FeaturesController(); $FeaturesController->'description' => __( foo, fooo ),;
- foo (required)
- -
- fooo (required)
- -
FeaturesController::init_features() FeaturesController::init features code WC 8.7.0
'description' => __( 'Try the new product editor (Beta)', 'woocommerce' ), 'is_experimental' => true, 'disable_ui' => false, 'is_legacy' => true, 'disabled' => function() { return version_compare( get_bloginfo( 'version' ), '6.2', '<' ); }, 'desc_tip' => function() { $string = ''; if ( version_compare( get_bloginfo( 'version' ), '6.2', '<' ) ) { $string = __( '⚠ This feature is compatible with WordPress version 6.2 or higher.', 'woocommerce'