WP HOOKS
akcjaod 3.9.0

wp_playlist_scripts

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

Opis — z kodu źródłowego

Prints and enqueues playlist scripts, styles, and JavaScript templates.

Parametry

ParametrTypOpis
$typestringType of playlist. Possible values are 'audio' or 'video'.
$stylestringThe '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
}

Popularne w tej kategorii