admin_comment_types_dropdown

admin_comment_types_dropdown

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.0.3

apply_filters('admin_comment_types_dropdown') is found 1 times:

  • /wp-admin/includes/class-wp-comments-list-table.php line 346
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    * @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";

See this hook used in plugins: