embed_html

FILTER wp-includes\embed.php (ligne 547) github
Filters the embed HTML output for a given post.

Paramètres

Entrée :
$output, $post, $width, $height
Sortie :
@param string  $output The default iframe tag to display embedded content.
@param WP_Post $post   Current post object.
@param int     $width  Width of the response.
@param int     $height Height of the response.

Utilisation

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

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

Actualités

Chargement des actualités...