post_comment_status_meta_box-options
Fires at the end of the Discussion meta box on the post editing screen.
Usage
add_action( 'post_comment_status_meta_box-options', 'wp_kama_post_comment_status_meta_box_options_action' ); /** * Function for `post_comment_status_meta_box-options` action-hook. * * @param WP_Post $post WP_Post object for the current post. * * @return void */ function wp_kama_post_comment_status_meta_box_options_action( $post ){ // action... }
- $post(WP_Post)
- WP_Post object for the current post.
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
post_comment_status_meta_box-options
wp-admin/includes/meta-boxes.php 869
do_action( 'post_comment_status_meta_box-options', $post ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores