filtrod 3.9.0
post_playlist
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
| Parametr | Typ | Opis |
|---|---|---|
$output | string | Playlist output. Default empty. |
$attr | array | An array of shortcode attributes. |
$instance | int | Unique 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
}
// 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