do_meta_boxes ( $screen, $context, $data_object )
- 参数
-
-
(string|WP_Screen)
$screen
The screen identifier. If you have used add_menu_page() or add_submenu_page() to create a new screen (and hence screen_id) make sure your menu slug conforms to the limits of sanitize_key() otherwise the ‘screen’ menu may not correctly render on your page.- Required: 是
-
(string)
$context
The screen context for which to display meta boxes.- Required: 是
-
(mixed)
$data_object
Gets passed to the meta box callback function as the first parameter. Often this is the object that’s the focus of the current screen, for example a `WP_Post` or `WP_Comment` object.- Required: 是
-
(string|WP_Screen)
- 返回值
-
- (int) Number of meta_boxes.
- 定义位置
-
-
wp-admin/includes/template.php
, line 1267
-
wp-admin/includes/template.php
- 引入
- 2.5.0
- 弃用
- –
Meta-Box template function.
function do_meta_boxes( $screen, $context, $data_object ) { global $wp_meta_boxes; static $already_sorted = false; if ( empty( $screen ) ) { $screen = get_current_screen(); } elseif ( is_string( $screen ) ) { $screen = convert_to_screen( $screen ); } $page = $screen->id; $hidden = get_hidden_meta_boxes( $screen ); printf( '
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。