The first step is to define our blueprint. In PHP, the keyword class alerts PHP that this is a blueprint. The syntax is: An object is a noun, i.e. a thing. Therefore, its name should be a singular noun. How you code the name varies depending upon if you are following PSR or the WordPress coding standard. Per PSR, class names should be in StudlyCaps, where the words are smooshed together and the first letter is capitalized. Per the WordPress Coding Standard, the words are separated by an underscore and the first letter of each word is capitalized. The curly […]
