WPBP / WordPress-Plugin-Boilerplate-Powered

Wordpress Plugin Boilerplate but Powered with examples and a generator!
https://wpbp.github.io/
GNU General Public License v3.0
793 stars 114 forks source link

Refactor Is class #188

Closed Mte90 closed 3 years ago

Mte90 commented 3 years ago

There are various and better ways that can remove this code from a boilerplate (https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/blob/master/plugin-name/engine/Is_Methods.php) to an external library.

An idea can be create a wrapper to one of those and remove more code to be tested as it is delegated to the library.

PS: maybe change the name of the class as it is not allowed to have one of just 2 like Is so I added methods but is very horrible.