June 2013
Beginner
368 pages
9h 32m
English
CHAPTER 13
![]()
Creating Plugins
While theme functions are quite powerful, they aren’t very portable. If you ever want to switch themes, you’ll have to copy all your essential functions from one theme to another. There’s another option: many of the theme functions you’ve seen throughout this book could become plugins. Plugins offer much better control over functions, since you can activate and deactivate them as needed. The plugin manager also provides some safeguards, since plugins containing errors will fail to activate, whereas errors in a theme functions file will affect your site immediately. You can do any number of things with plugins: modify ...
Read now
Unlock full access