add_inline_data WordPress Action Hook
The add_inline_data Wordpress hook allows you to add extra data to the inline script tag of your website. This data can be used by your website's JavaScript code to perform extra tasks.
do_action( 'add_inline_data', WP_Post $post , WP_Post_Type $post_type_object ) #
Fires after outputting the fields for the inline editor for posts and pages.
Parameters
- $post
(WP_Post)The current post object.
- $post_type_object
(WP_Post_Type)The current post's post type object.
Source
Changelog
Version | Description |
---|---|
4.9.8 | Introduced. |