I'm new to PHP and WordPress, and I'm curious:

Why is WP-Query capitalized like it is?

Is this a PHP naming convention, based on the type of query? Or what?



WP_Query is a PHP Class, class names are capitalized, with words separated by underscores, as per the Naming Conventions in WordPress Coding Standards.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.