post_submitbox_misc_actions

最后更新于:2021-11-27 17:26:09

do_action( ‘post_submitbox_misc_actions’, GC_Post $post )

Fires after the post time/date setting in the Publish meta box.

参数

$post

(GC_Post)
GC_Post object for the current post.

源文件

文件: gc-admin/includes/meta-boxes.php

View on Trac


add_action( 'post_submitbox_misc_actions', 'my_post_submitbox_misc_actions' );

function my_post_submitbox_misc_actions($post){

<div class="misc-pub-section my-options">
	<label for="my_custom_post_action">My Option</label><br/>
	<select id="my_custom_post_action" name="my_custom_post_action">
		<option value="1">First Option goes here</option>
		<option value="2">Second Option goes here</option>
	</select>
</div>

}