Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: quick_edit_dropdown_authors_args

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
1666                                * Filters the arguments used to generate the Quick Edit authors drop-down.
1667                                *
1668                                * @since 5.6.0
1669                                *
1670                                * @see wp_dropdown_users()
1671                                *
1672                                * @param array $users_opt An array of arguments passed to wp_dropdown_users().
1673                                * @param bool  $bulk      A flag to denote if it's a bulk action.
1674                                */
1675                               $users_opt = apply_filters( 'quick_edit_dropdown_authors_args', $users_opt, $bulk );
1676
1677                               $authors = wp_dropdown_users( $users_opt );
1678
1679                               if ( $authors ) {
1680                                    $authors_dropdown  = '<label class="inline-edit-author">';
1681                                    $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
1682                                    $authors_dropdown .= $authors;
1683                                    $authors_dropdown .= '</label>';
1684                               }