scottsweb / mobble

✅ WordPress plugin that provides conditional functions for detecting a variety of devices.
http://scott.ee/journal/mobble/
Other
85 stars 19 forks source link

Adding optional filters to is_* functions #10

Closed mkeasling closed 8 years ago

mkeasling commented 8 years ago

I want to be able to use the set of is_* functions, but then optionally override it, if I have a cookie set to force desktop behavior. So, this change would add filters to each function, allowing me to override if/when I want. This should not alter any existing behavior, if no filters are defined.

scottsweb commented 8 years ago

I can certainly see the use for this. In order to accept the PR I would need the composer.json file to use the correct details for this repository and use the correct spelling of WordPress.

mkeasling commented 8 years ago

Gladly!

scottsweb commented 8 years ago

Thanks!