akcjaod 3.9.0
wp_playlist_scripts
Opis — z kodu źródłowego
Prints and enqueues playlist scripts, styles, and JavaScript templates.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$type | string | Type of playlist. Possible values are 'audio' or 'video'. |
$style | string | The 'theme' for the playlist. Core provides 'light' and 'dark'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_playlist_scripts', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_playlist_scripts', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii