Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Sterup

    (@foomagoo)

    That sounds like a good feature to add, but no you can’t currently do that. Not sure if I can do that without slowing everything down. You could put the user agent string of the browser you want to target into the text area on the settings page under the Mobile User Agents tab.

    Thread Starter Julie

    (@habannah)

    Thanks, Jeff.

    From what I understand of the Mobile User Agents tab, this is the list which determines which plugins should be On or Off for mobile. If so, then I would assume that IE is already on the list — except it seems that the list only contains device names rather than browser names. So, then my thinking goes that any browser used by the list of devices would automatically be included. If that’s the case, then I’m not sure I understand what your suggestion would do and how it would work.

    Thanks for clarifying!

    Plugin Author Jeff Sterup

    (@foomagoo)

    It does a case insensitive string match on the user agent string from the browser based on what you put in the text area. I’m not sure it is possible to do it on an individual post since all that is available is the url being accessed and the wordpress core hasn’t been loaded yet. The only way I can think of doing it would be to load every row from the table and use the strings from each row to search the user agent from the browser. But that would put a load on the server to do that on every page load.

    Thread Starter Julie

    (@habannah)

    Thanks for the info, Jeff. I kept digging and found the WordPress $is_IE() variable, which I think will work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Possible to filter based on browser?’ is closed to new replies.