Last active
November 30, 2017 05:56
-
-
Save bayareawebpro/8ba71e5994b898ac61d0738e4a842187 to your computer and use it in GitHub Desktop.
This file contains 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
//Replace Shortcode | |
$replacement = "[av_textblock size='' font_color='' color=''] Scroll down to view listings from ".$serviceName." in ".$city.", ".$state.". [/av_textblock]"; | |
$post->post_content = preg_replace('%\[av_textblock size=\'[^"]*\' font_color=\'[^"]*\' color=\'[^"]*\']([^[]*)\[/av_textblock]%', $replacement, $post->post_content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment