Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: dbx_post_advanced

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
190
191 /**
192  * Fires in the middle of built-in meta box registration.
193  *
194  * @since 2.1.0
195  * @deprecated 3.7.0 Use 'add_meta_boxes' instead.
196  *
197  * @param WP_Post $post Post object.
198  */
199 do_action( 'dbx_post_advanced', $post );
200
201 if ( post_type_supports($post_type, 'comments') )
202      add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', null, 'normal', 'core');
203
204 if ( ( 'publish' == get_post_status( $post ) || 'private' == get_post_status( $post ) ) && post_type_supports($post_type, 'comments') )
205      add_meta_box('commentsdiv', __('Comments'), 'post_comment_meta_box', null, 'normal', 'core');
206
207 if ( ! ( 'pending' == get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) ) )
208      add_meta_box('slugdiv', __('Slug'), 'post_slug_meta_box', null, 'normal', 'core');