Functionality
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
About this tool.
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 .
Getting started.
- 01Upload the functionality directory to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Visit the ‘Plugins > Edit Functions’ menu in WordPress and enter filesystem credentials if necessary
- 04A functionality plugin will be created for you in wp-content/plugins/functions/functions.php
- 05Use the built-in WordPress file editor to edit your functionality plugin
Enable Styles Feature
- 06To enable the optional CSS styles feature, uncomment that line in the functions file, save the changes, and refresh the page
- 07Visit the new ‘Plugins > Edit Styles’ admin menu and enter filesystem credentials if necessary
- 08A stylesheet file will be created for you in wp-content/plugins/functions/style.css . This file will be automatically loaded on the front-end of your site.
- 09Use the built-in WordPress file editor to edit your stylesheet 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 links in the admin menu, and automatic styles loading if that feature is enabled.