Automattic\WooCommerce\Admin\Features\MultichannelMarketing

Init::reload_page_on_toggle()public staticWC 1.0

Reloads the page when the option is toggled to make sure all Multichannel Marketing features are loaded.

Метод класса: Init{}

No Hooks.

Return

null. Nothing.

Usage

$result = Init::reload_page_on_toggle( $old_value, $value );
$old_value(string) (required)
Old value.
$value(string) (required)
New value.

Code of Init::reload_page_on_toggle() WC 7.1.0

public static function reload_page_on_toggle( $old_value, $value ) {
	if ( $old_value === $value ) {
		return;
	}

	self::$is_updated = true;
}