Action hook 'custom_header_options'

in WP Core File wp-admin/includes/class-custom-image-header.php at line 811

View Source

custom_header_options

Action Hook
Description
Fires just before the submit button in the custom header options form.

Hook Information

File Location wp-admin/includes/class-custom-image-header.php View on GitHub
Hook Type Action
Line Number 811

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into custom_header_options
add_action('custom_header_options', 'my_custom_function');

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

Source Code Context

wp-admin/includes/class-custom-image-header.php:811 - How this hook is used in WordPress core
<?php
 806  		/**
 807  		 * Fires just before the submit button in the custom header options form.
 808  		 *
 809  		 * @since 3.1.0
 810  		 */
 811  		do_action( 'custom_header_options' );
 812  
 813  		wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' );
 814  		?>
 815  
 816  		<?php submit_button( null, 'primary', 'save-header-options' ); ?>

PHP Documentation

<?php
/**
		 * Fires just before the submit button in the custom header options form.
		 *
		 * @since 3.1.0
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-admin/includes/class-custom-image-header.php
Related Hooks

Related hooks will be displayed here in future updates.