swift_performance_session_cache_useragent

You can filter useragent for WooCommerce Session cache preload

Parameters

$useragent

string contains the useragent


Return

string contains the useragent


Example

add_filter('swift_performance_session_cache_useragent', function($ua){
 return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11.1; rv:84.0) Gecko/20100101 Firefox/84.0'
});