filtrod 6.9.0
wp_register_ability_category_args
Opis — z kodu źródłowego
Filters the ability category arguments before they are validated and used to instantiate the ability category.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array<string,mixed> | { The arguments used to instantiate the ability category. @type string $label The human-readable label for the ability category. @type string $description A description of the ability category. @type array<string, mixed> $meta Optional. Additional metadata for the ability category. } |
$slug | string | The slug of the ability category. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_register_ability_category_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_register_ability_category_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii