WP HOOKS
filtrod 3.2.0

is_protected_meta

Args 3Plik wp-includes/meta.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether a meta key is considered protected.

Parametry

ParametrTypOpis
$protectedboolWhether the key is considered protected.
$meta_keystringMetadata key.
$meta_typestringType of object metadata is for. Accepts 'blog', 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

Wywołanie

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

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