edit_comment_misc_actions
Filters miscellaneous actions for the edit comment form sidebar.
Usage
add_filter( 'edit_comment_misc_actions', 'wp_kama_edit_comment_misc_actions_filter', 10, 2 ); /** * Function for `edit_comment_misc_actions` filter-hook. * * @param string $html Output HTML to display miscellaneous action. * @param WP_Comment $comment Current comment object. * * @return string */ function wp_kama_edit_comment_misc_actions_filter( $html, $comment ){ // filter... return $html; }
- $html(string)
- Output HTML to display miscellaneous action.
- $comment(WP_Comment)
- Current comment object.
Changelog
Since 4.3.0 | Introduced. |
Where the hook is called
In file: /wp-admin/edit-form-comment.php
wp-admin/edit-form-comment.php 233
echo apply_filters( 'edit_comment_misc_actions', '', $comment );