Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: screen_layout_columns

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
3597      <p>' . __('To remove a widget from a sidebar <em>and keep its configuration</em>, drag it to Inactive Widgets.') . '</p>
3598      <p>' . __('The Inactive Widgets area stores widgets that are configured but not curently used. If you change themes and the new theme has fewer sidebars than the old, all extra widgets will be stored to Inactive Widgets automatically.') . '</p>
3599 ';
3600 }
3601
3602 function screen_layout($screen) {
3603      global $screen_layout_columns;
3604
3605      $columns = array('dashboard' => 4, 'post' => 2, 'page' => 2, 'link' => 2);
3606      $columns = apply_filters('screen_layout_columns', $columns, $screen);
3607
3608      if ( !isset($columns[$screen]) ) {
3609           $screen_layout_columns = 0;
3610           return '';
3611       }
3612
3613      $screen_layout_columns = get_user_option("screen_layout_$screen");
3614      $num = $columns[$screen];
3615