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 |
---|---|
1046 |
|
1047 | $hidden = get_user_option( "metaboxhidden_{$screen->id}" ); |
1048 |
|
1049 | // Hide slug boxes by default |
1050 | if ( !is_array( $hidden ) ) { |
1051 | if ( 'post' == $screen->base || 'page' == $screen->base ) |
1052 | $hidden = array('slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv'); |
1053 | else |
1054 | $hidden = array( 'slugdiv' ); |
1055 | $hidden = apply_filters('default_hidden_meta_boxes', $hidden, $screen); |
1056 | } |
1057 |
|
1058 | return $hidden; |
1059 | } |
1060 |
|
1061 | /** |
1062 | * Add a new section to a settings page. |
1063 | * |
1064 | * Part of the Settings API. Use this to define new settings sections for an admin page. |