Created
July 17, 2018 03:25
-
-
Save msaari/14c7d65d4019443b956bc94e2d3f67f9 to your computer and use it in GitHub Desktop.
Relevanssi div filter
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 the theme functions.php | |
| add_filter( 'relevanssi_post_content', 'rlv_div_remove' ); | |
| function rlv_div_remove( $content ) { | |
| $content = preg_replace( '/<div.*/s', '', $content ); | |
| return $content; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment