Research indexBook chapter
Creating Plugins
Apress eBooks1 Jan 2010
NobleIDark:/48914/w1/20260523/BDBD52ADDOI10.1007/978-1-4302-2896-7_9
Creating Plugins
Apress eBooks · 2010 · Subscription
NobleIDark:/48914/w1/20260523/BDBD52ADDOI10.1007/978-1-4302-2896-7_9
The full text is at the publisher
You can read the abstract here, or open it at the publisher.
Abstract
While theme functions are quite powerful, they aren’t very portable. If you ever wanted to switch themes, you would 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 or replace existing functions (filters), add your functions in predetermined locations (actions), create new template tags and shortcodes, and more.KeywordsPage TitleText DomainNavigation MenuPage ListPage LinkThese keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.