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
43                return current_user_can( 'manage_network_themes' );
44      }
45
46      function prepare_items() {
47           global $status, $totals, $page, $orderby, $order, $s;
48
49           wp_reset_vars( array( 'orderby', 'order', 's' ) );
50
51           $themes = array(
52                'all' => apply_filters( 'all_themes', wp_get_themes() ),
53                'search' => array(),
54                'enabled' => array(),
55                'disabled' => array(),
56                'upgrade' => array(),
57                'broken' => $this->is_site_themes ? array() : wp_get_themes( array( 'errors' => true ) ),
58           );
59
60           if ( $this->is_site_themes ) {
61                $themes_per_page = $this->get_items_per_page( 'site_themes_network_per_page' );