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.
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.
You must be logged in to post a comment.
WP_Query
is a PHP Class, class names are capitalized, with words separated by underscores, as per the Naming Conventions in WordPress Coding Standards.