Skip to content

Instantly share code, notes, and snippets.

@johnalarcon johnalarcon/functions.php
Last active Apr 12, 2019

Embed
What would you like to do?
Filter examples for the Shortcodes Everywhere plugin for ClassicPress. These code snips can be added to a functionality plugin or the functions.php file.
<?php
// Disable shortcodes in widgets? Use this filter!
add_filter('codepotent_shortcodes_everywhere_widgets', '__return_false');
// Disable shortcodes in excerpts? Use this filter!
add_filter('codepotent_shortcodes_everywhere_excerpts', '__return_false');
// Disable shortcodes in category descriptions? Use this filter!
add_filter('codepotent_shortcodes_everywhere_terms', '__return_false');
// Disable shortcodes in comments? Use this filter!
add_filter('codepotent_shortcodes_everywhere_comments', '__return_false');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.