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?

Thanks.

1 Answer
1

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

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *