Action hook 'add_inline_data'

in WP Core File wp-admin/includes/template.php at line 395

View Source

add_inline_data

Action Hook
Description
Fires after outputting the fields for the inline editor for posts and pages.

Hook Information

File Location wp-admin/includes/template.php View on GitHub
Hook Type Action
Line Number 395

Hook Parameters

Type Name Description
WP_Post $post The current post object.
WP_Post_Type $post_type_object The current post's post type object.

Usage Examples

Basic Usage
<?php
// Hook into add_inline_data
add_action('add_inline_data', 'my_custom_function', 10, 2);

function my_custom_function($post, $post_type_object) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/template.php:395 - How this hook is used in WordPress core
<?php
 390  	 * @since 4.9.8
 391  	 *
 392  	 * @param WP_Post      $post             The current post object.
 393  	 * @param WP_Post_Type $post_type_object The current post's post type object.
 394  	 */
 395  	do_action( 'add_inline_data', $post, $post_type_object );
 396  
 397  	echo '</div>';
 398  }
 399  
 400  /**

PHP Documentation

<?php
/**
	 * Fires after outputting the fields for the inline editor for posts and pages.
	 *
	 * @since 4.9.8
	 *
	 * @param WP_Post      $post             The current post object.
	 * @param WP_Post_Type $post_type_object The current post's post type object.
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/includes/template.php
Related Hooks

Related hooks will be displayed here in future updates.