WP HOOKS
akcjaod 6.9.0

wp_abilities_api_init

Args 1Plik wp-includes/abilities-api/class-wp-abilities-registry.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires when preparing abilities registry.

Abilities should be created and register their hooks on this action rather than another action to ensure they're only loaded when needed.

Parametry

ParametrTypOpis
$instance\WP_Abilities_RegistryAbilities registry object.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'wp_abilities_api_init', 'twoja_funkcja' );

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

Popularne w tej kategorii