WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

StoredStateSetupForProducts::init_stored_state() public WC 1.0

Set initial stored state values.

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

No Hooks.

Return

Object. The stored state.

Usage

$result = StoredStateSetupForProducts::init_stored_state( $stored_state );
$stored_state(object) (required)
The stored state.

Code of StoredStateSetupForProducts::init_stored_state() WC 5.3.0

<?php
public static function init_stored_state( $stored_state ) {
	$stored_state->there_were_no_products = ! self::are_there_products();
	$stored_state->there_are_now_products = ! $stored_state->there_were_no_products;

	return $stored_state;
}