Congratulations on taking your first steps towards learning PHP for WordPress! I'm Rachel McCollin, and from all of us here at Envato Tuts+, thanks for watching!
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 back to Tuts+ course on learning PHP for WordPress. In this course, you've learned everything you need to know to get started coding PHP in your WordPress themes and templates, so let's recap on what you've learned. So we started off by looking at what PHP is and what it does. So we identified the fact that PHP is a server side language, as against a client side language like HTML. We then used an example of this page on my website where we looked at the mock-up that's generated by WordPress, and we looked at the template file that generates that mock-up. We then moved on to looking at the coding standards in detail. So, I talked you through some template files within my frame, and showed you how they adhere to the coding standards. And I also showed you some of my theme files, and how they use things like indentation, and braces, and line spacing, and so forth. Once we'd done that we went on to some practical work. So we set up a demo page template, and I showed you how to add PHP to your file, and how to add comments to it, and template tags. And within that file, I showed you how to code functions with braces added correctly and spacing, as well as how to use curly braces to enclose conditional functions. In the next part, we look to HTML and how to add HTML to your PHP file, and I showed you two methods of doing that, both of which you can see here. We then moved on to some more specific aspects of coding PHP in WordPress. So firstly, you learned about commenting, and you learned the different formats you can use for commenting in PHP and why you need to use them. Having done that, we started writing some functions. So we wrote a basic function and a pluggable function, and then we learned how to fire those functions by hooking them to action and filter hooks. We then looked at the loop. So we looked at the standard loop and how that's coded, and then we looked at a nonstandard loop using the get_pages function, and we created a foreach loop and echoed out information relating to each page in a site. You then learned about variables in PHP and how you can use them to store simple text, or the results of a function, or more complex data. And then finally, we looked at the echo function, and you learned how you can use echo to echo out not only simple text, but also the results of certain functions which fetch data from the database. And we also had a brief look at internationalization and how you use the _e function to internationalize some static text. So that should have got you started with the core elements of PHP you'll need to know in order to write your own themes and plugins. If this course has whetted your appetite for learning more about PHP, you can also follow another Tuts+ course, which specifically looks at PHP, rather than PHP for WordPress, and this will teach you some more advanced PHP techniques that you can implement in your WordPress files. I hope you found this course useful. Thanks for watching.Back to the top