wpdocs_filter

FILTER wp-includes\plugin.php (ligne 706) github
Retrieves the number of times an action has been fired during the current request.

Paramètres

Entrée :
$value, $extra_arg
Sortie :
@param string $hook_name The name of the action hook.
@return int The number of times the action hook has been fired.

Utilisation

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

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

Actualités

Chargement des actualités...