admin_comment_types_dropdown хук-фильтр . WP 2.7.0
Filters the comment types shown in the drop-down menu on the Comments list table.
Использование
add_filter( 'admin_comment_types_dropdown', 'filter_function_name_1839' ); function filter_function_name_1839( $comment_types ){ // filter... return $comment_types; }
- $comment_types(строка[])
- Array of comment type labels keyed by their name.
Список изменений
С версии 2.7.0 | Введена. |
Где вызывается хук
admin_comment_types_dropdown
wp-admin/includes/class-wp-comments-list-table.php 490-496
$comment_types = apply_filters( 'admin_comment_types_dropdown', array( 'comment' => __( 'Comments' ), 'pings' => __( 'Pings' ), ) );