WP HOOKS
filtrod 6.9.0

wp_register_ability_category_args

Args 2Plik wp-includes/abilities-api/class-wp-ability-categories-registry.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the ability category arguments before they are validated and used to instantiate the ability category.

Parametry

ParametrTypOpis
$argsarray<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&lt;string, mixed&gt; $meta Optional. Additional metadata for the ability category. }
$slugstringThe 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
}

Popularne w tej kategorii