WordPress at Your Fingertips
function is not described

WC_Admin_Report::maybe_update_transients() public WC 1.0

Function to update the modified transients at the end of the request.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Report::maybe_update_transients();

Code of WC_Admin_Report::maybe_update_transients() WC 5.8.0

public static function maybe_update_transients() {
	foreach ( self::$transients_to_update as $key => $transient_name ) {
		set_transient( $transient_name, self::$cached_results[ $transient_name ], DAY_IN_SECONDS );
	}
	// Transients have been updated reset the list.
	self::$transients_to_update = array();
}