Introduction
What is PHP for WordPress?
()
What you should know
()
Setting up a local environment
()
1. PHP Basics
What is PHP?
()
Printing information
()
What are variables?
()
Strings in PHP
()
Using arrays
()
Arithmetic operators and math in PHP
()
Challenge: Perform a mathematic operation and store it
()
Solution: Perform a mathematic operation and store it
()
2. Control Structures
Comparison operators and the truth
()
Logical operators
()
Creating if/else statements
()
Conditional tags in WordPress
()
Loops
()
The Loop in WordPress
()
Challenge: Loop through an array of information
()
Solution: Loop through an array of information
()
3. Using Functions
What are functions?
()
Using functions in WordPress
()
Writing your own functions
()
Challenge: Write your own function to compare two numbers
()
Solution: Write your own function to compare two numbers
()
4. Working in WordPress
The functions file
()
Copying Hello Dolly
()
WP_Query
()
Hooks: Actions and filters
()
Ex_Files_PHP_WordPress.zip
(8 KB)