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
Creating if/else statements
()
Loops
()
Challenge: Loop through an array of information
()
Comparison operators and the truth
()
Logical operators
()
Conditional tags in WordPress
()
The Loop in WordPress
()
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
()
WP_Query
()
Hooks: Actions and filters
()
Copying Hello Dolly
()
Ex_Files_PHP_WordPress.zip
(8 KB)