wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_interactivity_state › WordPress Function

Da6.5.0
Deprecaton/a
wp_interactivity_state ( $store_namespace, $state = array() )
Parametri: (2)
  • (string) $store_namespace The unique store namespace identifier.
    Richiesto:
  • (array) $state Optional. The array that will be merged with the existing state for the specified store namespace.
    Richiesto: No
    Default: array()
Ritorna:
  • (array) The state for the specified store namespace. This will be the updated state if a $state argument was provided.
Definito a:
Codex:

Gets and/or sets the initial state of an Interactivity API store for a given namespace.

If state for that store namespace already exists, it merges the new provided state with the existing one.


Sorgenti

function wp_interactivity_state( string $store_namespace, array $state = array() ): array {
	return wp_interactivity()->state( $store_namespace, $state );
}