infinum / eightshift-gdpr

MIT License
0 stars 0 forks source link

global utilities #3

Open iruzevic opened 6 years ago

iruzevic commented 6 years ago

Just a thinking out loud: We could put this in a class and declare functions as a public static function. that way they can be called like Class_Name::static_function_name() even outside of the plugin. Worth testing out...

dingo-d commented 6 years ago

That thought came to my mind, but you mentioned you used the utilities in one of the client projects theme, and you needed to override it, so I wasn't sure if by setting it to static will make it possible to override it or someting like that.

But we need to test it. If it works, we should definitely do it :)