WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #52816, comment 2


Ignore:
Timestamp:
03/15/2021 12:59:44 PM (8 weeks ago)
Author:
audrasjb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52816, comment 2

    initial v1  
    1010    foreach ( $screens as $screen ) {
    1111        add_meta_box(
    12             'wporg_box_id',                 // Unique ID
    13             'Custom Meta Box Title',      // Box title
    14             'wporg_custom_box_html',  // Content callback, must be of type callable
    15             $screen                            // Post type
     12            'wporg_box_id',
     13            'Custom Meta Box Title',
     14            'wporg_custom_box_html',
     15            $screen
    1616        );
    1717    }