postbox_classes()
postbox_classes( string $box_id, string $screen_id )
返回元框要使用的类的列表。
Returns the list of classes to be used by a meta box.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$box_id | (string) | 必需 | 元框ID(用于元框的“ID”属性)。 |
$screen_id | (string) | 必需 | 显示元框的屏幕。 |
返回(Return)
(string)用空格分隔的类名string。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-admin/includes/post.php:1289 | 2 | 3 |
postbox_classes() 为WP2原创文章,链接:https://www.wp2.cn/functions/postbox_classes/