Gets the current Interactivity API context for a given namespace.
Description
The function should be used only during directive processing. If the $store_namespace parameter is omitted, it uses the current namespace value on the internal namespace stack. It returns an empty array when the specified namespace is not defined.
Parameters
$store_namespacestringoptional
The unique store namespace identifier.Default: null
Signature, return type and hooks compared across 5 parsed releases.
7.1.0
Parameter $store_namespace retyped from string to string|null.verified against source
6.6.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/interactivity-api/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.