Filter hook 'edit_comment_misc_actions'

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

View Source

edit_comment_misc_actions

Filter Hook
Description
Filters miscellaneous actions for the edit comment form sidebar.

Hook Information

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

Hook Parameters

Type Name Description
string $html Output HTML to display miscellaneous action.
WP_Comment $comment Current comment object.

Usage Examples

Basic Usage
<?php
// Hook into edit_comment_misc_actions
add_filter('edit_comment_misc_actions', 'my_custom_filter', 10, 2);

function my_custom_filter($html, $comment) {
    // Your custom filtering logic here
    return $html;
}

Source Code Context

wp-admin/edit-form-comment.php:233 - How this hook is used in WordPress core
<?php
 228  	 * @since 4.3.0
 229  	 *
 230  	 * @param string     $html    Output HTML to display miscellaneous action.
 231  	 * @param WP_Comment $comment Current comment object.
 232  	 */
 233  	echo apply_filters( 'edit_comment_misc_actions', '', $comment );
 234  ?>
 235  
 236  </div> <!-- misc actions -->
 237  <div class="clear"></div>
 238  </div>

PHP Documentation

<?php
/**
	 * Filters miscellaneous actions for the edit comment form sidebar.
	 *
	 * @since 4.3.0
	 *
	 * @param string     $html    Output HTML to display miscellaneous action.
	 * @param WP_Comment $comment Current comment object.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/edit-form-comment.php
Related Hooks

Related hooks will be displayed here in future updates.