pre_do_shortcode_tag

FILTER wp-includes\shortcodes.php (ligne 427) github
Filters whether to call a shortcode callback. Returning a non-false value from filter will short-circuit the shortcode generation process, returning that value instead.

Paramètres

Entrée :
false, $tag, $attr, $m
Sortie :
@param false|string $output Short-circuit return value. Either false or the value to replace the shortcode with.
@param string       $tag    Shortcode name.
@param array        $attr   Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
@param array        $m      Regular expression match array.

Utilisation

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

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

Actualités

Chargement des actualités...