Top

Daily Tip: Updates to WordPress 3.0 Coding Standards

June 10, 2010

Did you know that WordPress has a guide to its Coding Standards in the codex? These guidelines were written in hopes to gradually improve PHP markup used with WordPress to maintain a consistent style so the code can remain clean and easy to read at a glance.

You may already be in the habit of doing most of these things, but in case you’re new to WordPress coding, this guide is worth looking over.

Two updates to the Coding Standards for WordPress 3.0:

No more camelcase for variables, functions, file names, and operators:

function some_name( $some_variable ) { [...] }

Files should be named descriptively using lowercase letters. Hyphens should separate words:

my-plugin-name.php

Tweet This Post

Comments

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.