首页 WordPress函数大全 do_meta_boxes()

do_meta_boxes()

2020-05-01 / 4275阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

do_meta_boxes( string|WP_Screen $screen, string $context, mixed $object )

Meta-Box template function.

描述

参数

$screen

(string|WP_Screen)
(Required)
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>
(string)
(Required)
The screen context for which to display meta boxes.

$object

(mixed)
(Required)
Gets passed to the first parameter of the meta box callback function. Often this is the object that's the focus of the current screen, for example a WP_Post or WP_Comment object.

返回

(int) number of meta_boxes

大家谈论
    我的见解