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
1680                                     * Filters the arguments used to generate the Quick Edit authors drop-down.
1681                                     *
1682                                     * @since 5.6.0
1683                                     *
1684                                     * @see wp_dropdown_users()
1685                                     *
1686                                     * @param array $users_opt An array of arguments passed to wp_dropdown_users().
1687                                     * @param bool $bulk A flag to denote if it's a bulk action.
1688                                     */
1689                                    $users_opt = apply_filters( 'quick_edit_dropdown_authors_args', $users_opt, $bulk );
1690
1691                                    $authors = wp_dropdown_users( $users_opt );
1692
1693                                    if ( $authors ) {
1694                                         $authors_dropdown  = '<label class="inline-edit-author">';
1695                                         $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
1696                                         $authors_dropdown .= $authors;
1697                                         $authors_dropdown .= '</label>';
1698                                    }