WP HOOKS
filtrod 4.7.0

do_shortcode_tag

Args 4Plik wp-includes/shortcodes.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the output created by a shortcode callback.

Parametry

ParametrTypOpis
$outputstringShortcode output.
$tagstringShortcode name.
$attrarrayShortcode attributes array, can be empty if the original arguments string cannot be parsed.
$marrayRegular 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
}

Popularne w tej kategorii