WP HOOKS
filtrod 4.4.0

embed_html

Args 4Plik wp-includes/embed.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the embed HTML output for a given post.

Parametry

ParametrTypOpis
$outputstringThe default iframe tag to display embedded content.
$post\WP_PostCurrent post object.
$widthintWidth of the response.
$heightintHeight of the response.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'embed_html', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}

Popularne w tej kategorii