Chapter 5: Creating Simple Plugins from Scratch

In This Chapter

arrow.png Creating a valid plugin

arrow.png Filtering content

arrow.png Adding shortcodes and widgets

arrow.png Creating a plugin settings page

You can extend WordPress functionality through plugins and themes without modifying any of WordPress core files. This allows for customizing WordPress while still permitting easy upgrades when new versions of WordPress are released. By using the WordPress software built-in action hooks (placeholder functions that allow plugin developers to execute code hooked into them) and filter hooks (also placeholder functions that you can use to apply parameters to filter results), you can create just about any functionality you can imagine.

This chapter takes you on a crash course in creating plugins. The plugins I show you how to build start off simple and iteratively introduce new concepts as the functionality gets deeper and more involved. Having a foundational knowledge of PHP is helpful for getting the most out of this chapter; however, even beginner PHP developers should be able to get value out of each project.

This ...

Get WordPress All-in-One For Dummies, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.