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 |
|---|---|
| 1502 | |
| 1503 | /** |
| 1504 | * Fires in the middle of built-in meta box registration. |
| 1505 | * |
| 1506 | * @since 2.1.0 |
| 1507 | * @deprecated 3.7.0 Use 'add_meta_boxes' instead. |
| 1508 | * |
| 1509 | * @param WP_Post $post Post object. |
| 1510 | */ |
| 1511 | do_action( 'dbx_post_advanced', $post ); |
| 1512 | |
| 1513 | // Allow the Discussion meta box to show up if the post type supports comments, |
| 1514 | // or if comments or pings are open. |
| 1515 | if ( comments_open( $post ) || pings_open( $post ) || post_type_supports( $post_type, 'comments' ) ) { |
| 1516 | add_meta_box( 'commentstatusdiv', __( 'Discussion' ), 'post_comment_status_meta_box', null, 'normal', 'core', array( '__back_compat_meta_box' => true ) ); |
| 1517 | } |
| 1518 | |
| 1519 | $stati = get_post_stati( array( 'public' => true ) ); |
| 1520 | if ( empty( $stati ) ) { |