woocommerce_feature_description_tip
Filter to customize the description tip that appears under the description of each feature in the features settings page.
Usage
add_filter( 'woocommerce_feature_description_tip', 'wp_kama_woocommerce_feature_description_tip_filter', 10, 3 ); /** * Function for `woocommerce_feature_description_tip` filter-hook. * * @param string $desc_tip The original description tip. * @param string $feature_id The id of the feature for which the description tip is being customized. * @param bool $disabled True if the UI currently prevents changing the enable/disable status of the feature. * * @return string */ function wp_kama_woocommerce_feature_description_tip_filter( $desc_tip, $feature_id, $disabled ){ // filter... return $desc_tip; }
- $desc_tip(string)
- The original description tip.
- $feature_id(string)
- The id of the feature for which the description tip is being customized.
- $disabled(true|false)
- True if the UI currently prevents changing the enable/disable status of the feature.
Changelog
Since 7.1.0 | Introduced. |
Where the hook is called
woocommerce/src/Internal/Features/FeaturesController.php 858
$desc_tip = apply_filters( 'woocommerce_feature_description_tip', $desc_tip, $feature_id, $disabled );