Retrieves the main WP_Interactivity_API instance.
Description
It provides access to the WP_Interactivity_API instance, creating one if it doesn’t exist yet.
Source
* array.
*
* This helper function simplifies the creation of `data-wp-context` directives
* by providing a way to pass an array of data, which encodes into a JSON string
* safe for direct use as a HTML attribute value.
*
* Example:
Changelog
Version | Description |
---|---|
6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.