WC_Install::maybe_set_activation_transients()private staticWC 4.6.0

See if we need to set redirect transients for activation or not.

Method of the class: WC_Install{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Install::maybe_set_activation_transients();

Changelog

Since 4.6.0 Introduced.

WC_Install::maybe_set_activation_transients() code WC 9.4.2

private static function maybe_set_activation_transients() {
	if ( self::is_new_install() ) {
		set_transient( '_wc_activation_redirect', 1, 30 );
	}
}