WordPress at Your Fingertips
function is not described

WC_Install::maybe_set_activation_transients() private WC 4.6.0

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

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Install::maybe_set_activation_transients();

Changelog

Since 4.6.0 Introduced.

Code of WC_Install::maybe_set_activation_transients() WC 5.6.0

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