O'Reilly logo

WordPress All-in-One For Dummies, 2nd Edition by Lisa Sabin-Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required