dbx_post_advanced
Deprecated since 3.7.0. It is no longer supported and may be removed in future releases. See add_meta_boxes.
Deprecated hook that fires while built-in meta boxes are registered. Use add_meta_boxes since version 3.7.0.
Display example: the block moves below the sidebar (a layout characteristic):
add_action( 'dbx_post_advanced', 'callback__dbx_post_advanced' );
function callback__dbx_post_advanced( $post ) {
?>
<div style="margin-top: 10px;padding: 15px;color: #fff;background: #673AB7;clear: both;">
The <b>dbx_post_advanced</b> hook fired here.
</div>
<?php
}
Usage
add_action( 'dbx_post_advanced', 'wp_kama_dbx_post_advanced_action', 10, 2 );
/**
* Function for `dbx_post_advanced` action-hook.
*
* @param WP_Post $post Post object.
* @param $string
*
* @return void
*/
function wp_kama_dbx_post_advanced_action( $post, $string ){
// action...
}
- $post(WP_Post)
- The post object. See get_post() for the object structure.
Examples
Changelog
| Since 2.1.0 | Introduced. |
| Deprecated since 3.7.0 | Use {@see 'add_meta_boxes'} instead. |
Where the hook is called
dbx_post_advanced
wp-admin/includes/meta-boxes.php 1646
do_action_deprecated( 'dbx_post_advanced', array( $post ), '3.7.0', 'add_meta_boxes' );
