edit_comment_misc_actions
Filters miscellaneous actions for the edit comment form sidebar.
Использование
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(строка)
- Output HTML to display miscellaneous action.
- $comment(WP_Comment)
- Current comment object.
Список изменений
| С версии 4.3.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/edit-form-comment.php
wp-admin/edit-form-comment.php 233
echo apply_filters( 'edit_comment_misc_actions', '', $comment );