Action hook 'page_attributes_misc_attributes'

in WP Core File wp-admin/includes/meta-boxes.php at line 1080

View Source

page_attributes_misc_attributes

Action Hook
Description
Fires before the help hint text in the 'Page Attributes' meta box.

Hook Information

File Location wp-admin/includes/meta-boxes.php View on GitHub
Hook Type Action
Line Number 1080

Hook Parameters

Type Name Description
WP_Post $post The current post.

Usage Examples

Basic Usage
<?php
// Hook into page_attributes_misc_attributes
add_action('page_attributes_misc_attributes', 'my_custom_function', 10, 1);

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

Source Code Context

wp-admin/includes/meta-boxes.php:1080 - How this hook is used in WordPress core
<?php
1075  		 *
1076  		 * @since 4.9.0
1077  		 *
1078  		 * @param WP_Post $post The current post.
1079  		 */
1080  		do_action( 'page_attributes_misc_attributes', $post );
1081  		?>
1082  		<?php if ( 'page' === $post->post_type && get_current_screen()->get_help_tabs() ) : ?>
1083  <p class="post-attributes-help-text"><?php _e( 'Need help? Use the Help tab above the screen title.' ); ?></p>
1084  			<?php
1085  	endif;

PHP Documentation

<?php
/**
		 * Fires before the help hint text in the 'Page Attributes' meta box.
		 *
		 * @since 4.9.0
		 *
		 * @param WP_Post $post The current post.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/meta-boxes.php
Related Hooks

Related hooks will be displayed here in future updates.