WP HOOKS
filtrod 3.1.0

doing_it_wrong_trigger_error

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

Opis — z kodu źródłowego

Filters whether to trigger an error for _doing_it_wrong() calls.

Parametry

ParametrTypOpis
$triggerboolWhether to trigger the error for _doing_it_wrong() calls. Default true.
$function_namestringThe function that was called.
$messagestringA message explaining what has been done incorrectly.
$versionstringThe version of WordPress where the message was added.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'doing_it_wrong_trigger_error', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}

Popularne w tej kategorii