admin_comment_types_dropdown
admin_comment_types_dropdown
Appears in: wordpress-4.0, wordpress-4.4, wordpress-4.8, wordpress-4.9, wordpress-4.9.4, wordpress-4.9.5, wordpress-4.9.6, wordpress-4.9.7, wordpress-4.9.8, wordpress-5.0, wordpress-5.0.1, wordpress-5.0.2, wordpress-5.0.3
Hook Type: filter
See hook in action
Displaying hooks found in version: wordpress-5.0.3apply_filters('admin_comment_types_dropdown') is found 1 times:
- /wp-admin/includes/class-wp-comments-list-table.php line 346342343344345346347348349350351352
* @since 2.7.0
*
* @param
array
$comment_types
An
array
of comment types. Accepts
'Comments'
,
'Pings'
.
*/
$comment_types
= apply_filters(
'admin_comment_types_dropdown'
,
array
(
'comment'
=> __(
'Comments'
),
'pings'
=> __(
'Pings'
),
) );
foreach
(
$comment_types
as
$type
=>
$label
)
echo
"\t"
.
'<option value="'
. esc_attr(
$type
) .
'"'
. selected(
$comment_type
,
$type
, false ) .
">$label</option>\n"
;