do_accordion_sections
函数
do_accordion_sections ( $screen, $context, $data_object )
- 参数
-
-
(string|object)
$screen
The screen identifier.- Required: 是
-
(string)
$context
The screen context for which to display accordion sections.- Required: 是
-
(mixed)
$data_object
Gets passed to the section callback function as the first parameter.- Required: 是
-
(string|object)
- 返回值
-
- (int) Number of meta boxes as accordion sections.
- 定义位置
-
-
wp-admin/includes/template.php
, line 1491
-
wp-admin/includes/template.php
- 引入
- 3.6.0
- 弃用
- –
Meta Box Accordion Template Function.
Largely made up of abstracted code from do_meta_boxes(), this
function serves to build meta boxes as list items for display as
a collapsible accordion.
function do_accordion_sections( $screen, $context, $data_object ) { global $wp_meta_boxes; wp_enqueue_script( 'accordion' ); 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 ); ?>
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。