Action hook 'add_meta_boxes_comment'

in WP Core File wp-admin/edit-form-comment.php at line 266

View Source

add_meta_boxes_comment

Action Hook
Description
Fires when comment-specific meta boxes are added.

Hook Information

File Location wp-admin/edit-form-comment.php View on GitHub
Hook Type Action
Line Number 266

Hook Parameters

Type Name Description
WP_Comment $comment Comment object.

Usage Examples

Basic Usage
<?php
// Hook into add_meta_boxes_comment
add_action('add_meta_boxes_comment', 'my_custom_function', 10, 1);

function my_custom_function($comment) {
    // Your custom code here
}

Source Code Context

wp-admin/edit-form-comment.php:266 - How this hook is used in WordPress core
<?php
 261   *
 262   * @since 3.0.0
 263   *
 264   * @param WP_Comment $comment Comment object.
 265   */
 266  do_action( 'add_meta_boxes_comment', $comment );
 267  
 268  do_meta_boxes( null, 'normal', $comment );
 269  
 270  $referer = wp_get_referer();
 271  ?>

PHP Documentation

<?php
/**
 * Fires when comment-specific meta boxes are added.
 *
 * @since 3.0.0
 *
 * @param WP_Comment $comment Comment object.
 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/edit-form-comment.php
Related Hooks

Related hooks will be displayed here in future updates.