filtrod 4.7.0
do_shortcode_tag
Opis — z kodu źródłowego
Filters the output created by a shortcode callback.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$output | string | Shortcode output. |
$tag | string | Shortcode name. |
$attr | array | Shortcode attributes array, can be empty if the original arguments string cannot be parsed. |
$m | array | Regular expression match array. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'do_shortcode_tag', '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( 'do_shortcode_tag', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii