Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: admin_comment_types_dropdown

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
473       */
474      protected function comment_status_dropdown( $comment_type ) {
475           /**
476            * Filters the comment types dropdown menu.
477            *
478            * @since 2.7.0
479            *
480            * @param array $comment_types An array of comment types. Accepts 'Comments', 'Pings'.
481            */
482           $comment_types = apply_filters(
483                'admin_comment_types_dropdown',
484                array(
485                     'comment' => esc_html__( 'Comments' ),
486                     'pings'   => esc_html__( 'Pings' ),
487                )
488           );
489
490           if ( $comment_types && is_array( $comment_types ) ) {
491                printf( '<label class="screen-reader-text" for="filter-by-comment-type">%s</label>', esc_html__( 'Filter by comment type' ) );