woocommerce_feature_description_tip

FILTER woocommerce\src\Internal\Features\FeaturesController.php (ligne 1276) github
Filter to customize the description tip that appears under the description of each feature in the features settings page.

Paramètres

Entrée :
$desc_tip, $feature_id, $disabled
Sortie :
@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 The new description tip to use.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_feature_description_tip'
add_filter('woocommerce_feature_description_tip', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($desc_tip) {
    // Modifier la valeur
    return $desc_tip;
}

Actualités

Chargement des actualités...