You appear to be a bot. Output may be restricted
Description
Calls a shortcode for a simple example
Usage
bw_invoke_shortcode( $shortcode, $atts, $text );
Parameters
- $shortcode
- ( string ) required – name of shortcode
- $atts
- ( string ) optional – attribute parameters to the shortcode
- $text
- ( string ) optional – translated brief description of the shortcode
Returns
voidSource
File name: oik/libs/oik-sc-help.phpLines:
1 to 19 of 19
function bw_invoke_shortcode( $shortcode, $atts=null, $text=null ) { BW_::p( $text ); $example = "[$shortcode"; if ($atts ) $example .= " $atts"; $example .= ']'; sp(); stag( "code" ); e( $example ); etag( "code" ); ep(); //p( $example ); $saved = bw_global_post(); $expanded = bw_expand_shortcode( $example ); bw_global_post( $saved ); e( $expanded ); bw_trace2( $expanded, "expanded", true, BW_TRACE_DEBUG ); //bw_backtrace(); }View on GitHub View on Trac