do_meta_boxes example

<?php the_block_editor_meta_box_post_form_hidden_fields( $post ); ?> </form> <form id="toggle-custom-fields-form" method="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>"> <?php wp_nonce_field( 'toggle-custom-fields', 'toggle-custom-fields-nonce' ); ?> <input type="hidden" name="action" value="toggle-custom-fields" /> </form> <?php foreach ( $locations as $location ) : ?> <form class="metabox-location-<?php echo esc_attr( $location ); ?>" onsubmit="return false;"> <div id="poststuff" class="sidebar-open"> <div id="postbox-container-2" class="postbox-container"> <?php                     do_meta_boxes(
                        $current_screen,
                        $location,
                        $post
                    );
                    ?> </div> </div> </form> <?php endforeach; ?> <?php
    
<?php echo isset( $link->link_description ) ? esc_attr( $link->link_description ) : ''; ?>" id="link_description" /> <p><?php _e( 'This will be shown when someone hovers over the link in the blogroll, or optionally below the link.' ); ?></p> </div> </div> </div><!-- /post-body-content --> <div id="postbox-container-1" class="postbox-container"> <?php
/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'submitlink_box' );
$side_meta_boxes = do_meta_boxes( 'link', 'side', $link );

?> </div> <div id="postbox-container-2" class="postbox-container"> <?php
do_meta_boxes( null, 'normal', $link );

do_meta_boxes( null, 'advanced', $link );

?>

    do_action( 'submitpost_box', $post );
}


do_meta_boxes( $post_type, 'side', $post );

?> </div> <div id="postbox-container-2" class="postbox-container"> <?php
do_meta_boxes( null, 'normal', $post );

if ( 'page' === $post_type ) {
    /** * Fires after 'normal' context meta boxes have been output for the 'page' post type. * * @since 1.5.0 * * @param WP_Post $post Post object. */
do_action( 'add_meta_boxes', 'comment', $comment );

/** * Fires when comment-specific meta boxes are added. * * @since 3.0.0 * * @param WP_Comment $comment Comment object. */
do_action( 'add_meta_boxes_comment', $comment );

do_meta_boxes( null, 'normal', $comment );

$referer = wp_get_referer();
?> </div> <input type="hidden" name="c" value="<?php echo esc_attr( $comment->comment_ID ); ?>" /> <input type="hidden" name="p" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" /> <input name="referredby" type="hidden" id="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" /> <?php wp_original_referer_field( true, 'previous' ); ?> <input type="hidden" name="noredir" value="1" /> </div><!-- /post-body --> </div> </div> </form>
function wp_dashboard() {
    $screen      = get_current_screen();
    $columns     = absint( $screen->get_columns() );
    $columns_css = '';

    if ( $columns ) {
        $columns_css = " columns-$columns";
    }
    ?> <div id="dashboard-widgets" class="metabox-holder<?php echo $columns_css; ?>"> <div id="postbox-container-1" class="postbox-container"> <?php do_meta_boxes( $screen->id, 'normal', '' ); ?> </div> <div id="postbox-container-2" class="postbox-container"> <?php do_meta_boxes( $screen->id, 'side', '' ); ?> </div> <div id="postbox-container-3" class="postbox-container"> <?php do_meta_boxes( $screen->id, 'column3', '' ); ?> </div> <div id="postbox-container-4" class="postbox-container"> <?php do_meta_boxes( $screen->id, 'column4', '' ); ?> </div> </div>
Home | Imprint | This part of the site doesn't use cookies.