post_submit_meta_box()显示一个文章提交按钮

目录

描述

Display post submit form fields.

post_submit_meta_box() 描述

用法

Outputted on  add_meta_box( 'submitdiv', __( 'Publish' ), 'post_submit_meta_box', null, 'side', 'core' ); 

When the core makes the add/edit screens for page/posts in wp-admin/edit-form-advanced.php.

post_submit_meta_box() 用法

参数

$post

(object) (必填) The object of the current post

默认值: None

post_submit_meta_box() 参数

返回值

Outputs the meta box allowing users to (depending on their permissions) save as draft, publish, edit, delete, preview, or schedule a post or page.

post_submit_meta_box() 返回值

历史

添加于 版本: 2.7.0

post_submit_meta_box() 历史

源文件

post_submit_meta_box() 函数的代码位于 wp-admin/includes/metaboxes.php.

post_submit_meta_box() 源文件