wpseo_publishbox_misc_actions
Fires after the post time/date setting in the Publish meta box.
Использование
add_action( 'wpseo_publishbox_misc_actions', 'wp_kama_wpseo_publishbox_misc_actions_action' ); /** * Function for `wpseo_publishbox_misc_actions` action-hook. * * @param WP_Post $post The current post object. * * @return void */ function wp_kama_wpseo_publishbox_misc_actions_action( $post ){ // action... }
- $post(WP_Post)
- The current post object.
Где вызывается хук
wpseo_publishbox_misc_actions
yoast/admin/class-admin-init.php 376
do_action( 'wpseo_publishbox_misc_actions', $post );