Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $str = '[term value="Value" id="600"][term value="Term" id="609"]';
- $content = 'This is some text, (perhaps pulled via $post->post_content). It has a [gallery] shortcode.';
- if( has_shortcode( $content, 'gallery' ) ) {
- // The content has a [gallery] short code, so this check returned true.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement