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.
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.
// 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;
}
Chargement des actualités...