woocommerce_get_path_define_tokens

FILTER woocommerce\includes\wc-core-functions.php (ligne 232) github
Fetches an array containing all of the configurable path constants to be used in tokenization.

Paramètres

Entrée :
$path_tokens
Sortie :
@return array The key is the define and the path is the constant.

Utilisation

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

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

Actualités

Chargement des actualités...