This is a community-maintained repository of code snippets to help modify the default behaviour of the various plugins developed by WebberZone.
These are not add-on plugins as they would sit in their own repository.
Each plugin developed by WebberZone has a separate folder which contains its own set of sub-folders (categories). Each of these categories contain their set of snippets. Each snippet is placed in its own file with a name that describes what it does.
Snippets have been either designed as WordPress plugins or as standalone functions. For snippets set up as WordPress plugins please follow the below instructions:
- Click on the filename of the snippet you'd like to use. The ones set up as WordPress plugins have
* Plugin Name:
in the file comment - Click the "Raw" button (next to "Blame" and "History") at the top right
- Save the page from your browser as a .php file in a folder of the same name
- Compress the folder in a .zip file and upload this as a plugin in the Plugins > Add New > Upload plugin page.
- Activate the plugin from the WordPress plugins page
For files that aren't set up as plugins (i.e. standalone functions), follow steps 1, 2 and 3 above and then copy and paste the code into your theme or child theme's functions.php or inside a custom functionality or Must Use plugin (wp-content/mu-plugins
folder).
We welcome and encourage everyone to submit their code snippets. If you would like to submit your snippet, please fork the repository and then create a pull request. You can also modify existing snippets in this way if you'd like to make them better.
Please refer to the Contributing guidelines before submitting your pull request.
These snippets come with no guarantees. As the code base of the plugins change, it might be possible that some snippets will be outdated. Find something broken? Let us know!