You appear to be a bot. Output may be restricted
Description
Displays a shortcode example.Sanitize the shortcode and only call the example function if the escaped version is the same as the original.
Usage
bw_lazy_sc_example( $shortcode, $atts );Parameters
- $shortcode
- ( string ) required –
- $atts
- ( array ) optional – shortcode example parameters
Returns
voidSource
File name: oik/libs/oik-sc-help.phpLines:
1 to 7 of 7
function bw_lazy_sc_example( $shortcode, $atts=null ) { $shortcode_escaped = esc_html( $shortcode ); if ( $shortcode_escaped === $shortcode ) { $funcname = bw_load_shortcode_suffix($shortcode, "__example"); $funcname($shortcode, $atts); } }View on GitHub View on Trac
