Created
September 25, 2017 17:06
-
-
Save msaari/0a0a5dbde145826a200080224fc7065a to your computer and use it in GitHub Desktop.
Remove [ultimate-faqs] shortcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Add this to theme functions.php | |
| add_filter('relevanssi_pre_excerpt_content', 'rlv_remove_faq'); | |
| function rlv_remove_faq($content) { | |
| $content = preg_replace('/\[ultimate-faqs.*?\]/', '', $content); | |
| return $content; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment