Action hook 'update-core-custom_{$action}'

in WP Core File wp-admin/update-core.php at line 1331

View Source

update-core-custom_{$action}

Action Hook
Description
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.

Hook Information

File Location wp-admin/update-core.php View on GitHub
Hook Type Action
Line Number 1331

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into update-core-custom_{$action}
add_action('update-core-custom_{$action}', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-admin/update-core.php:1331 - How this hook is used in WordPress core
<?php
1326  	 * passed update action. The hook fires in lieu of all available
1327  	 * default update actions.
1328  	 *
1329  	 * @since 3.2.0
1330  	 */
1331  	do_action( "update-core-custom_{$action}" );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
1332  }

PHP Documentation

<?php
/**
	 * 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.
	 *
	 * @since 3.2.0
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-admin/update-core.php
Related Hooks

Related hooks will be displayed here in future updates.