2. Who is this for?
You can read HTML
You know how to access WordPress
theme files via FTP
You’ve seen some of these things
( <?php ?>) and you want to know
what they do
6. Coding Standards
WordPress PHP Coding Standards
https://make.wordpress.org/core/
handbook/coding-standards/php/
!
PHP The Right Way
http://www.phptherightway.com/
38. <?php
// Evaluate using a logical operator
if ( $number_of_wordcamps == 4 && $wordcamp_is_awesome ) {
echo "<p>Now you're getting the hang of it.</p>";
}
?>
index.php
45. Get vs. The
!
When “the” starts a WordPress function
name, it prints directly to the page.
When “get” starts a WordPress function
name, it simply returns that value to a
variable