oembed_response_data

FILTER wp-includes\embed.php (ligne 627) github
Filters the oEmbed response data.

Paramètres

Entrée :
$data, $post, $width, $height
Sortie :
@param array   $data   The response data.
@param WP_Post $post   The post object.
@param int     $width  The requested width.
@param int     $height The calculated height.

Utilisation

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

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

Actualités

Chargement des actualités...