post_type; $post_type_object = get_post_type_object( $post_type ); $user_ID = get_current_user_id(); // Set current screen set_current_screen($post_type); // Flag that we're not loading the block editor. $current_screen = get_current_screen(); $current_screen->is_block_editor = 0; $form_extra = ''; $form_action = 'editpost'; $nonce_action = 'update-post_' . $post_ID; $form_extra .= ""; // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). $lib = ABSPATH . 'site-admin/includes/meta-boxes.php'; $lib = file_exists($lib) ? $lib : ABSPATH . 'wp-admin/includes/meta-boxes.php'; require_once $lib; register_and_do_post_meta_boxes( $post ); $locations = array( 'side', 'normal', 'advanced' ); $priorities = array( 'high', 'sorted', 'core', 'default', 'low' ); $to_remove_box = array('submitdiv', 'categorydiv', 'tagsdiv-post_tag', 'pageparentdiv', 'postimagediv', 'revisionsdiv', 'commentsdiv', 'formatdiv', 'postexcerpt', 'commentstatusdiv', 'slugdiv', 'authordiv'); // Remove meta boxes from pagelayer settings $to_remove_box = apply_filters('pagelayer_remove_meta_boxes', $to_remove_box); // Remove Meta Boxes foreach( $locations as $location ){ foreach( $priorities as $priority ){ if( isset( $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ] ) ){ foreach( $to_remove_box as $to_remove ) { if(array_key_exists($to_remove, $wp_meta_boxes[ $current_screen->id ][ $location ][ $priority ])){ remove_meta_box($to_remove, $current_screen, $location); } } } } } // Add format div again to change the position if ( current_theme_supports( 'post-formats' ) && post_type_supports( $post_type, 'post-formats' ) ) { add_meta_box( 'formatdiv', _x( 'Format', 'post format' ), 'post_format_meta_box', null, 'normal', 'default', array( '__back_compat_meta_box' => true ) ); } // TO show all hidden meta boxes add_filter( 'hidden_meta_boxes', function( $hidden, $screen, $use_defaults ){ return array(); }, 999, 3); $props_tabs = array( 'advanced_props' => array( 'label' => __('Advanced'), 'icon' => 'dashicons dashicons-welcome-add-page', 'class' => 'pagelayer-active-item', ), 'hf_code' => array( 'label' => __('Header, Body and Footer'), 'icon' => 'dashicons dashicons-editor-code', ), ); $props_tabs = apply_filters('pagelayer_post_props_tabs', $props_tabs); ?>
>
$props_tab){?>
>

public ? get_sample_permalink_html( $post->ID ) : ''; // As of 4.4, the Get Shortlink button is hidden by default. if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) { $shortlink = wp_get_shortlink( $post->ID, 'post' ); if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) { $sample_permalink_html .= '' . ''; } } if ( $post_type_object->public && ! ( 'pending' === get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) ) ) { $has_sample_permalink = $sample_permalink_html && 'auto-draft' !== $post->post_status; ?>

<head> Section.') ?>

<body> Section.') ?>

</body> Section.') ?>