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.


Top ↑

Source

File: wp-admin/includes/template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.8Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.