A functionality plugin is a way to separate what you might normally place in a theme’s
functions.php file, and put it in a plugin instead. It works the same way as a theme
functions.php file, but is separate from the theme and so not affected by theme upgrades, or tied to the theme so you loose all of your functions if you choose to switch themes.
This plugin automates the process of creating a functionality plugin. Simply install and activate this plugin, and your very own functionality plugin will be created for you. You can then edit your functionality plugin and add snippets to it using the quick link in the admin menu.
See this WP Daily post for more information on functionality plugins.
This plugin’s code is available on GitHub. Please feel free to fork the repository and send a pull request. If you find a bug in the plugin, open an issue.
Serbian translation provided by Ogi Djuraskovic from FirstSiteGuide.com.
- Upload the
functionalitydirectory to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- A functionality plugin will be created for you in
- Use the built-in WordPress file editor to edit your functionality plugin
This plugin may be removed at any time, and your functionality plugin will remain working and intact. You will, however, loose the quick edit link in the admin menu.
- My functionality plugin isn’t working!
First of all, backup all of the code in your functionality plugin. Then deactivate both this plugin and your functionality plugin from the WordPress admin. Delete your functionality plugin (it will be called your site’s name), and then reactivate this plugin.
- Can I get rid of this plugin once my functionality plugin has been created?
With pleasure! Once this plugin has been activated and the functionality plugin created, all it does is create a link in the WordPress admin menu for easily editing the functionality plugin. If you don’t want this, feel free to delete this plugin.
- When would I use this plugin over the Code Snippets plugin?
This plugin is more suited to people who only have a few snippets and prefer editing a file to using a graphical interface. If you have a few snippets and like to be organized, you might feel more at home using the Code Snippets plugin, which is also created by me.
- Isn’t this just like the Pluginception plugin?
Yes, in that they are both a plugin for creating plugins. However, this plugin is a bit more easier to use and specific than Pluginception.
Easy to learn and use.
Funciona perfeitamente .. Works fine !
Perfect plugin, I discover it thanks to wootheme documentation, it will be very useful the day I need to update my theme.
Just a little thing: I’m using WP Editor to improve the quality of my plugin & theme editor, however when i’m editing the new functions.php, the editor isn’t working, I have the original editor from wordpress. Do you know why/how can I make it work?
I suggest this to folks I’m helping all the time who the barrier to write a plugin from scratch seems too high. A nice way to intro people to plugin coding.
Good job. Thank you.
See how this plugin allowed me to Use WordPress tags as Twitter hashtags using Jetpack Publicize and the Functionality plugin
Contributors & Developers
“Functionality” is open source software. The following people have contributed to this plugin.Contributors
- Updated to use
wp_get_current_user()`` instead ofget_currentuserinfo()`
- Updated code structure to use a controller class
- Added support for the WP Editor plugin
- Added Serbian translation thanks to Ogi Djuraskovic from FirstSiteGuide.com
- Fixed a spelling error when initializing the class
- Only initialize the class on plugin activation
- Move class to separate file
- Used a more reliable method of functionality plugin activation
- Initial release