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
54           return true;
55      }
56
57      function prepare_items() {
58           global $status, $themes, $totals, $page, $orderby, $order, $s;
59
60           wp_reset_vars( array( 'orderby', 'order', 's' ) );
61
62           $themes = array(
63                'all' => apply_filters( 'all_themes', get_themes() ),
64                'search' => array(),
65                'enabled' => array(),
66                'disabled' => array(),
67                'upgrade' => array()
68           );
69
70           $site_allowed_themes = get_site_allowed_themes();
71           if ( !$this->is_site_themes ) {
72                $allowed_themes = $site_allowed_themes;