add_inline_data
Fires after outputting the fields for the inline editor for posts and pages.
Usage
add_action( 'add_inline_data', 'wp_kama_add_inline_data_action', 10, 2 ); /** * Function for `add_inline_data` action-hook. * * @param WP_Post $post The current post object. * @param WP_Post_Type $post_type_object The current post's post type object. * * @return void */ function wp_kama_add_inline_data_action( $post, $post_type_object ){ // action... }
- $post(WP_Post)
- The current post object.
- $post_type_object(WP_Post_Type)
- The current post's post type object.
Changelog
Since 4.9.8 | Introduced. |
Where the hook is called
add_inline_data
wp-admin/includes/template.php 395
do_action( 'add_inline_data', $post, $post_type_object );