filtrod 3.2.0
is_protected_meta
Opis — z kodu źródłowego
Filters whether a meta key is considered protected.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$protected | bool | Whether the key is considered protected. |
$meta_key | string | Metadata key. |
$meta_type | string | Type 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
}
// 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
}