Understanding WordPress functions’ naming conventions

The sweet and short is to not break your head over naming conventions or consistency in WordPress, as these are non existant “standards”.

To be really honest, WordPress does not follow any fixed set of rules or standards, even though there is a handbook on coding standard available for WordPress developers. Yes, it would have being nice if they would have stuck to a certain pattern which was predictable, but they don’t.

WordPress is over 10 years old and was never intended to be as big as it is today. Over that period, many core developers came and went, and because WordPress today is a community project to which anyone can submit ideas on improvements, new functionality, etc to, you’ll find a lot of different coding styles and “standards” (like naming conventions) within core.

You are totally on the wrong track here if you are going to use naming conventions alone to find some common patterns between functions just based on leading words like add, register and the.

Leave a Comment