WordPress makes it easy to create content-rich websites, with powerful admin pages and the easy-to-use Customizer. However, there will come a time when the built-in options aren't enough, and you'll need to modify a theme or create your own plugin. That's where PHP comes in. PHP is the programming language that WordPress is built in, and if you want to take your WordPress skills to the next level, you'll have to learn PHP.
In this course, Rachel McCollin will give you an overview of what PHP is and how it's used for WordPress themes and plugins, with examples. You'll go on to learn how to create a PHP file and use it to output HTML. Then you'll learn to use functions, loops and if statements for coding custom WordPress themes and plugins.
Do you want to learn WordPress development from start to finish? Check out our learning guide: Learn WordPress Development.
1.Introduction1 lesson, 00:48
2.WordPress and PHP 2 lessons, 20:34
3.First Steps With PHP3 lessons, 28:09
4.Coding in PHP6 lessons, 1:06:08
5.Conclusion1 lesson, 03:07
Hello, and welcome to this Tutplus course on learning PHP for WordPress. My name is Rachel McCollin, and in this course I'm gonna teach you everything you need to know to get started coding PHP in WordPress themes and plugins. We'll start by looking at what PHP is, and why WordPress uses it. We'll move on to looking at the WordPress coding standards, and what's expected of you when you code PHP. And we'll then look at some specifics. So we'll creating some functions and hook them into our theme. We'll look at the loop and how you code that. We'll look at if and else statements, and how you use them with conditional tags. We'll then move on to defining some variables and finally, we'll learn how you could echo out text and data. Watch this course and learn about PHP for WordPress.
2. WordPress and PHP
2.1 Why WordPress Uses PHP