akcjaod 6.9.0
wp_abilities_api_init
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
| Parametr | Typ | Opis |
|---|---|---|
$instance | \WP_Abilities_Registry | Abilities 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
}
// rejestracja funkcji zwrotnej
add_action( 'wp_abilities_api_init', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii