wp_video_shortcode_override

FILTER wp-includes\media.php (ligne 3643) github
Filters the default video shortcode output. If the filtered output isn't empty, it will be used instead of generating the default video template.

Paramètres

Entrée :
'', $attr, $content, $instance
Sortie :
@param string $html     Empty variable to be replaced with shortcode markup.
@param array  $attr     Attributes of the shortcode. See {@see wp_video_shortcode()}.
@param string $content  Video shortcode content.
@param int    $instance Unique numeric ID of this video shortcode instance.

Utilisation

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

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

Actualités

Chargement des actualités...