Description
Expand shortcodes in the contentOriginally entitled 'Safely invoke the "the_content" filter' We only really want shortcode expansion to take place against the content So why not use "get_the_excerpt" instead? It's probably because some shortcodes don't work for that filter. OR is that a load of bolleaux? Why not just invoke do_shortcode() ?
Usage
bw_get_the_content( $content );Parameters
- $content
- ( mixed ) required –
Returns
voidSource
File name: oik/includes/bw_posts.phpLines:
1 to 10 of 10
function bw_get_the_content( $content ) { $doit = strpos( $content, "[" ); bw_push(); if ( $doit !== false ) { $content = do_shortcode( $content ); } $content = do_blocks( $content ); bw_pop(); return( $content ); }View on GitHub View on Trac
Invoked by
Calls
1 to 2 of 2
