WP HOOKS
filtrod 3.9.0

post_playlist

Args 3Plik wp-includes/media.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the playlist output.

Returning a non-empty value from the filter will short-circuit generation of the default playlist output, returning the passed value instead.

Parametry

ParametrTypOpis
$outputstringPlaylist output. Default empty.
$attrarrayAn array of shortcode attributes.
$instanceintUnique numeric ID of this playlist shortcode instance.

Wywołanie

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

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

Popularne w tej kategorii