WordPress at a glance
function is not described


RemoteInboxNotificationsEngine::get_stored_state() public WC 1.0

Gets the stored state option, and does the initial set up if it doesn't already exist.

{} It's a method of the class: RemoteInboxNotificationsEngine{}

No Hooks.


Object. The stored state option.


$result = RemoteInboxNotificationsEngine::get_stored_state();

Code of RemoteInboxNotificationsEngine::get_stored_state() WC 5.3.0

public static function get_stored_state() {
	$stored_state = get_option( self::STORED_STATE_OPTION_NAME );

	if ( false === $stored_state ) {
		$stored_state = new \stdClass();

		$stored_state = StoredStateSetupForProducts::init_stored_state(

		add_option( self::STORED_STATE_OPTION_NAME, $stored_state );

	return $stored_state;