Congratulations on completing this introduction to WordPress plugin development. In this lesson, I'll recap what we've covered in the course.
1.Introduction2 lessons, 04:13
2.Plugin Overview3 lessons, 25:08
3.Writing a Plugin3 lessons, 17:22
4.Plugin Functionality4 lessons, 31:28
5.Practical Project: Create a Widget Plugin2 lessons, 16:40
6.Conclusion1 lesson, 03:24
Hello, and welcome back to this Tuts+ course on WordPress plugin development. In this final part of the course, I'll recap on what you've learned and go through the different learning points that we've covered as we've gone through the course. So we started off by looking at when you would use a plugin, and comparing a plugin to the functions file. And I showed you some examples pf functionality that you'd add via a plugin. Such as registering custom post type, and that you'd add via the functions file, such as setting up navigation menus and thumbnail support. We then moved on to looking at the structure of a plugin. And I used WooCommerce as an example that we interrogated in detail to examine exactly how it's structured, how the files are kept, and also how to drill through the code and find an individual function that you might be looking for. And then we looked at the plugins API. So I showed you some examples of using filter hooks and action hooks. And I showed you how to use those to hook your functions and also how to unhook functions and prioritize them. So for example, in this plugin here that I use as an example, added our function tuts+ section menu to the tuts+ sidebar hook in the theme using the Add action function. We then started work on writing our own plugin. And we created over the three parts of the course, a plugin here that includes its own file structure, and also uses correct enqueuing and including to fetch those. And you can find those plugins in this Tuts+ course. We then looked at plugin security, and specifically validating, sanitizing, and escaping user data. So I showed you an example of a plugin to customize the admin by adding a meta box and how the data that's added via that meta box has to be checked for security using a nonce field. And also by checking user permissions. We then looked at some different examples of the type of plugin that you could create. And we started by looking at plugins that customize the admin. So we looked at two plugins. One of those was to customize the admin screens by editing the dashboard and by adding a meta box. And the other was to add extra functionality to the customizer. And then we looked at using a plugin to output some static content or some content fetched from the database using either the GetPages function or the WP query class, which you can find here. And then finally, we looked at creating our own widgets and shortcodes. And the plugins that we used were from this course here that included shortcodes and widgets. So I showed you how to create a really simple shortcode with some static content and also how to create a shortcode with parameters that your user could edit. And then we looked at how you create a widget that somebody can add to their site via the widget screen or the customizer. So we then looked at a practical project that pulled together a bunch of the techniques that we learned on the course. So we took the techniques for creating custom post types and taxonomies. For running a custom query using the WP query class. And also for creating a widget. And we created this widget here, which is in my sidebar, and you can see there on the site. Now you've completed this course, you should have solid grounding in how plugins work and the different ways that you can use them. I hope you found this course useful. Thanks for watching.