WordPress theme, can be PSR-2 compilant?

wordpress

#1

Hello guys,

I can’t find any information about that, can I use PSR-2 standard in WordPress theme here or I need to keep those weird spaces between “(” everywhere?


#2

Anyone here? :slight_smile:


#3

Hi,

I’m not sure if it will pass a review, but considering you are writing WordPress code which will then most likely be read/modified by other WordPress developer, it would be great if you would stick to the WordPress coding standards.


#4

You could code it however you want then run the final package through a code format tool to make it WordPress compatible.