filtrod 3.6.0
wp_audio_shortcode_override
Opis — z kodu źródłowego
Filters the default audio shortcode output.
If the filtered output isn't empty, it will be used instead of generating the default audio template.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$html | string | Empty variable to be replaced with shortcode markup. |
$attr | array | Attributes of the shortcode. See {@see \wp_audio_shortcode()}. |
$content | string | Shortcode content. |
$instance | int | Unique numeric ID of this audio shortcode instance. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_audio_shortcode_override', '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( 'wp_audio_shortcode_override', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii