woocommerce_register_feature_definitions
Deprecated from version 9.9.0 Features should be defined directly in get_feature_definitions.. It is no longer supported and can be removed in future releases. It is recommended to replace this hook with the same one.
The action for registering features.
Usage
add_action( 'woocommerce_register_feature_definitions', 'wp_kama_woocommerce_register_feature_definitions_action' ); /** * Function for `woocommerce_register_feature_definitions` action-hook. * * @param FeaturesController $features_controller The instance of FeaturesController. * * @return void */ function wp_kama_woocommerce_register_feature_definitions_action( $features_controller ){ // action... }
- $features_controller(FeaturesController)
- The instance of FeaturesController.
Changelog
Since 8.3.0 | Introduced. |
Deprecated since 9.9.0 | Features should be defined directly in get_feature_definitions. |
Where the hook is called
woocommerce_register_feature_definitions
woocommerce/src/Internal/Features/FeaturesController.php 522
do_action( 'woocommerce_register_feature_definitions', $this );