filtrod 4.4.0
embed_html
Opis — z kodu źródłowego
Filters the embed HTML output for a given post.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$output | string | The default iframe tag to display embedded content. |
$post | \WP_Post | Current post object. |
$width | int | Width of the response. |
$height | int | Height 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
}
// 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