WC_Interactivity_Initial_State::get_state()public staticWC 1.0

Get state from a given namespace.

Method of the class: WC_Interactivity_Initial_State{}

No Hooks.

Return

Array. The requested state.

Usage

$result = WC_Interactivity_Initial_State::get_state( $namespace );
$namespace(string) (required)
Namespace.

WC_Interactivity_Initial_State::get_state() code WC 9.0.1

public static function get_state( $namespace ) {
	return self::$initial_state[ $namespace ] ?? array();
}