WC_Helper_API_Backoff::is_refresh_request
Whether the current request is a manual Marketplace refresh.
Method of the class: WC_Helper_API_Backoff{}
No Hooks.
Returns
bool.
Usage
$result = WC_Helper_API_Backoff::is_refresh_request(): bool;
WC_Helper_API_Backoff::is_refresh_request() WC Helper API Backoff::is refresh request code WC 11.3.0
public static function is_refresh_request(): bool {
$request_uri = wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
return false !== stripos( (string) $request_uri, 'wc/v3/marketplace/refresh' );
}