Action hook 'edit_page_form'

in WP Core File wp-admin/edit-form-advanced.php at line 731

View Source

edit_page_form

Action Hook
Description
Fires after 'normal' context meta boxes have been output for the 'page' post type.

Hook Information

File Location wp-admin/edit-form-advanced.php View on GitHub
Hook Type Action
Line Number 731

Hook Parameters

Type Name Description
WP_Post $post Post object.

Usage Examples

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

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

Source Code Context

wp-admin/edit-form-advanced.php:731 - How this hook is used in WordPress core
<?php
 726  	 *
 727  	 * @since 1.5.0
 728  	 *
 729  	 * @param WP_Post $post Post object.
 730  	 */
 731  	do_action( 'edit_page_form', $post );
 732  } else {
 733  	/**
 734  	 * Fires after 'normal' context meta boxes have been output for all post types other than 'page'.
 735  	 *
 736  	 * @since 1.5.0

PHP Documentation

<?php
/**
	 * Fires after 'normal' context meta boxes have been output for the 'page' post type.
	 *
	 * @since 1.5.0
	 *
	 * @param WP_Post $post Post object.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/edit-form-advanced.php
Related Hooks

Related hooks will be displayed here in future updates.