2. WP Coding Standards
• HTML Coding Standard
• CSS Coding Standard
• JS Coding Standard
• PHP Coding Standard
3. HTML Coding Standards
• All tags must be closed properly
• All tags & attributes must be written in
lowercase
• Indent your code using Tab, NOT Space
4. CSS Coding Standards
• Use meaningful id or class names
• Use hyphens(-) when naming selectors
• Avoid CamelCase & Underscores
5. JS Coding Standards
• Use braces for multiline statement
• Use CamelCase, NOT underscore when
naming variables, functions
• Use jQuery noConflict
6. PHP Coding Standards
• Use lowercase letters for naming variables, functions,
arguments, never CamelCase.
• No shorthand PHP tags, always use full PHP tags.
• Use Single quotes(‘) or double quotes(“) when appropriate
7. PHP Coding Standards
• Always put spaces after commas, and on both sides of
logical, comparison, string and assignment operators.
• Make your code readable; readability is more important
than cleverness.
9. WordPress Actions
What are they?
Actions are triggered by specific events that take
place in WordPress.
Your can respond to the event by executing a
function.