Welcome, visitor! Log in
 

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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

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
84           $themes = array(
85                /**
86                 * Filter the full array of WP_Theme objects to list in the Multisite
87                 * themes list table.
88                 *
89                 * @since 3.1.0
90                 *
91                 * @param array $all An array of WP_Theme objects to display in the list table.
92                 */
93                'all' => apply_filters( 'all_themes', wp_get_themes() ),
94                'search' => array(),
95                'enabled' => array(),
96                'disabled' => array(),
97                'upgrade' => array(),
98                'broken' => $this->is_site_themes ? array() : wp_get_themes( array( 'errors' => true ) ),
99           );
100
101           if ( $this->is_site_themes ) {
102                $themes_per_page = $this->get_items_per_page( 'site_themes_network_per_page' );