post_comment_status_meta_box-options
Action HookDescription
Fires at the end of the Discussion meta box on the post editing screen.Hook Information
File Location |
wp-admin/includes/meta-boxes.php
View on GitHub
|
Hook Type | Action |
Line Number | 869 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Post
|
$post
|
WP_Post object for the current post. |
Usage Examples
Basic Usage
<?php
// Hook into post_comment_status_meta_box-options
add_action('post_comment_status_meta_box-options', 'my_custom_function', 10, 1);
function my_custom_function($post) {
// Your custom code here
}
Source Code Context
wp-admin/includes/meta-boxes.php:869
- How this hook is used in WordPress core
<?php
864 *
865 * @since 3.1.0
866 *
867 * @param WP_Post $post WP_Post object for the current post.
868 */
869 do_action( 'post_comment_status_meta_box-options', $post ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
870 ?>
871 </p>
872 <?php
873 }
874
PHP Documentation
<?php
/**
* Fires at the end of the Discussion meta box on the post editing screen.
*
* @since 3.1.0
*
* @param WP_Post $post WP_Post object for the current post.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/includes/meta-boxes.php
Related Hooks
Related hooks will be displayed here in future updates.