• Resolved pepewu

    (@pepewu)


    I am using “user agent groups” to get properly cached version for smartphones. Now I need a “switch to desktop” button on mobile, so I set a cookie and based on that cookie value I filter the wp_is_mobile result (to false). What I need more is to also return false from plugin’s \W3TC\Mobile_UserAgent->group_verifier function, so it would be great to have a filter there. Is it possible to add in future version? Is there a better way to do such feature? Maybe I am doing it wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pepewu

    Thank you for your question and Ia m happy to assist you with this.
    Have you tried Enabling the Cookie Group and managing the Mobile Group in Performance>Cookie Groups?
    Thanks!

    Thread Starter pepewu

    (@pepewu)

    Perfect, that was what I needed and the problem is solved using Cookie Groups.
    I have read earlier that this feature (Cookie Groups) works only for pro version, which I do not have, so I didn’t even looked at it.
    Thanks you for help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘“switch to desktop version” on mobile’ is closed to new replies.