post_comment_status_meta_box-options
Fires at the end of the Discussion meta box on the post editing screen.
Использование
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.
Список изменений
С версии 3.1.0 | Введена. |
Где вызывается хук
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