Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: all_themes

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
62           $themes = array(
63                /**
64                 * Filter the full array of WP_Theme objects to list in the Multisite
65                 * themes list table.
66                 *
67                 * @since 3.1.0
68                 *
69                 * @param array $all An array of WP_Theme objects to display in the list table.
70                 */
71                'all' => apply_filters( 'all_themes', wp_get_themes() ),
72                'search' => array(),
73                'enabled' => array(),
74                'disabled' => array(),
75                'upgrade' => array(),
76                'broken' => $this->is_site_themes ? array() : wp_get_themes( array( 'errors' => true ) ),
77           );
78
79           if ( $this->is_site_themes ) {
80                $themes_per_page = $this->get_items_per_page( 'site_themes_network_per_page' );