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
277
278 /**
279  * Fires in the middle of built-in meta box registration.
280  *
281  * @since 2.1.0
282  * @deprecated 3.7.0 Use 'add_meta_boxes' instead.
283  *
284  * @param WP_Post $post Post object.
285  */
286 do_action( 'dbx_post_advanced', $post );
287
288 // Allow the Discussion meta box to show up if the post type supports comments,
289 // or if comments or pings are open.
290 if ( comments_open( $post ) || pings_open( $post ) || post_type_supports( $post_type, 'comments' ) ) {
291      add_meta_box( 'commentstatusdiv', __( 'Discussion' ), 'post_comment_status_meta_box', null, 'normal', 'core' );
292 }
293
294 $stati = get_post_stati( array( 'public' => true ) );
295 if ( empty( $stati ) ) {