WC_Admin_Report::maybe_update_transients
Function to update the modified transients at the end of the request.
Метод класса: WC_Admin_Report{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WC_Admin_Report::maybe_update_transients();
Код WC_Admin_Report::maybe_update_transients() WC Admin Report::maybe update transients WC 10.4.2
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();
}