wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_interactivity_state › WordPress Function

Desde6.5.0
Obsoleton/a
wp_interactivity_state ( $store_namespace, $state = array() )
Parâmetros: (2)
  • (string) $store_namespace The unique store namespace identifier.
    Required: Yes
  • (array) $state Optional. The array that will be merged with the existing state for the specified store namespace.
    Required: No
    Padrão: array()
Retorna:
  • (array) The state for the specified store namespace. This will be the updated state if a $state argument was provided.
Definido em:
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.


Fonte

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