Prints the serialized client-side interactivity data.
Description
Encodes the config and initial state into JSON and prints them inside a script tag of type "application/json". Once in the browser, the state will be parsed and used to hydrate the client-side interactivity stores and the configuration will be available using a getConfig utility.
Signature, return type and hooks compared across 5 parsed releases.
6.7.0
Deprecated. Client data passing is handled by the {@see "script_module<em>data</em>{$module_id}"} filter.from the docblock
6.5.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/interactivity-api/class-wp-interactivity-api.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.