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
1700                                     * Filters the arguments used to generate the Quick Edit authors drop-down.
1701                                     *
1702                                     * @since 5.6.0
1703                                     *
1704                                     * @see wp_dropdown_users()
1705                                     *
1706                                     * @param array $users_opt An array of arguments passed to wp_dropdown_users().
1707                                     * @param bool $bulk A flag to denote if it's a bulk action.
1708                                     */
1709                                    $users_opt = apply_filters( 'quick_edit_dropdown_authors_args', $users_opt, $bulk );
1710
1711                                    $authors = wp_dropdown_users( $users_opt );
1712
1713                                    if ( $authors ) {
1714                                         $authors_dropdown  = '<label class="inline-edit-author">';
1715                                         $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
1716                                         $authors_dropdown .= $authors;
1717                                         $authors_dropdown .= '</label>';
1718                                    }