akcjadynamicznyod 3.2.0
update-core-custom_{$action}
Args 0Plik wp-admin/update-core.php
Opis — z kodu źródłowego
Fires for each custom update action on the WordPress Updates screen.
The dynamic portion of the hook name, $action, refers to the passed update action. The hook fires in lieu of all available default update actions.
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'update-core-custom_{$action}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'update-core-custom_{$action}', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii