wp_interactivity_get_context


wp_interactivity_get_context ( $store_namespace = null )

Parameters:
  • (string) store_namespace Optional. The unique store namespace identifier.
Returns:
  • (array) The context for the specified store namespace.
Defined at:

Description

Gets the current Interactivity API context for a given namespace.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.

Related Functions

wp_interactivity_data_wp_context, wp_interactivity_get_element, wp_interactivity_state, wp_interactivity_config, wp_interactivity

Top Google Results

User discussions

wpseek mobile