update-core-custom_(action)
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.
Usage
add_action( 'update-core-custom_(action)', 'wp_kama_update_core_custom_action' );
/**
* Function for `update-core-custom_(action)` action-hook.
*
* @return void
*/
function wp_kama_update_core_custom_action(){
// action...
}Changelog
| Since 3.2.0 | Introduced. |
Where the hook is called
In file: /wp-admin/update-core.php
update-core-custom_(action)
wp-admin/update-core.php 1331
do_action( "update-core-custom_{$action}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores