This is a community-maintained repository of code snippets that help modify the default behavior of Restrict Content Pro.
Snippets are organized into categories (folders) and each snippet is placed in its own file with a name that describes what it does.
While these snippets are available for you to take and use on your site, they are considered custom code and we do not offer support for custom code at this time. For more information or to take a look at our support policy.
Most files in this library are set up to be WordPress plugins:
- Click on the filename of the snippet you'd like to use.
- Click the "Raw" button (next to "Blame" and "History") at the top right.
- Save the page from your browser to your wp-content/plugins folder and upload to your server. Alternatively you can compress the file as a .zip file and upload as a plugin from within WordPress.
- Activate the plugin from the WordPress plugins page.
For files that aren't set up as plugins follow steps 1 and 2 above and then copy and paste the code into your child theme's functions.php or place inside a custom functionality plugin.
If you need help customising any of the snippets or do not understand how to use them, we recommend hiring an RCP consultant.
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.
Please refer to the Contributing guidelines before submitting your pull request.
If there is a snippet you are unable to find and would like to propose get written, please open an issue and describe your need.
These snippets come with no guarantees. Due to the constant evolution of the RCP codebase, it is possible that the behavior of these snippets may change overtime. Find something broken? Let us know!