WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
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.
Line | Code |
---|---|
3660 | <p>' . __('To remove a widget from a sidebar <em>and keep its configuration</em>, drag it to Inactive Widgets.') . '</p> |
3661 | <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> |
3662 | '; |
3663 | } |
3664 |
|
3665 | function screen_layout($screen) { |
3666 | global $screen_layout_columns; |
3667 |
|
3668 | $columns = array('dashboard' => 4, 'post' => 2, 'page' => 2, 'link' => 2); |
3669 | $columns = apply_filters('screen_layout_columns', $columns, $screen); |
3670 |
|
3671 | if ( !isset($columns[$screen]) ) { |
3672 | $screen_layout_columns = 0; |
3673 | return ''; |
3674 | } |
3675 |
|
3676 | $screen_layout_columns = get_user_option("screen_layout_$screen"); |
3677 | $num = $columns[$screen]; |
3678 |
|