WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about edit_form_advanced

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/edit-form-advanced.php do_action 707 /**
* Fires after 'normal' context meta boxes have been output for all post types other than 'page'.
*
* @since 1.5.0
*
* @param WP_Post $post Post object.
*/
wp-admin/includes/post.php do_action 2415 /**
* Renders the hidden form required for the meta boxes form.
*
* @since 5.0.0
*
* @param WP_Post $post Current post object.
*/
function the_block_editor_meta_box_post_form_hidden_fields( $post ) {
$form_extra = '';
if ( 'auto-draft' === $post->post_status ) {
$form_extra .= "";
}
$form_action = 'editpost';
$nonce_action = 'update-post_' . $post->ID;
$form_extra .= "";
$referer = wp_get_referer();
$current_user = wp_get_current_user();
$user_id = $current_user->ID;
wp_nonce_field( $nonce_action );

/*
* Some meta boxes hook into these actions to add hidden input fields in the classic post form.
* For backward compatibility, we can capture the output from these actions,
* and extract the hidden input fields.
*/

Hook Parameters

Parameter Type Name Description
WP_Post $post Post object.