wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_interactivity_get_context › WordPress Function

Seit6.6.0
Veraltetn/v
wp_interactivity_get_context ( $store_namespace = null )
Parameter:
  • (string) $store_namespace Optional. The unique store namespace identifier.
    Erforderlich: Nein
    Standard: null
Gibt zurück:
  • (array) The context for the specified store namespace.
Definiert in:
Codex:

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.


Quellcode

function wp_interactivity_get_context( ?string $store_namespace = null ): array {
	return wp_interactivity()->get_context( $store_namespace );
}