function/method for mobile detect consistent with its .htaccess rules
-
Basically I want to diplay different ads for mobile/desktop and I want them cached.
So rather than using a third party library to make the detection (as per Mobile_Detect or wp_is_mobile), I’d rather stick with the very same mobile detection that this wpsc plugin uses, with the .htaccess rules, in order to avoid possible miscachings.
Is there any wpsc function I can use to do this test? Anything like this would be perfect:
if( function_exists( 'wpsc_is_mobile' ) ) { if( wpsc_is_mobile( ) ) { // mobile } else { // desktop } }
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘function/method for mobile detect consistent with its .htaccess rules’ is closed to new replies.