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 |
---|---|
24 | function wp_widgets_access_body_class($classes) { |
25 | return "$classes widgets_access "; |
26 | } |
27 |
|
28 | if ( 'on' == $widgets_access ) |
29 | add_filter( 'admin_body_class', 'wp_widgets_access_body_class' ); |
30 | else |
31 | wp_enqueue_script('admin-widgets'); |
32 |
|
33 | do_action( 'sidebar_admin_setup' ); |
34 |
|
35 | $title = __( 'Widgets' ); |
36 | $parent_file = 'themes.php'; |
37 |
|
38 | get_current_screen()->add_help_tab( array( |
39 | 'id' => 'overview', |
40 | 'title' => __('Overview'), |
41 | 'content' => |
42 | '<p>' . __('Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.') . '</p> |