Description
Produce a table of shortcodes
Usage
bw_list_shortcodes( $atts );Parameters
- $atts
- ( array ) optional – shortcode parameters
Returns
voidSource
File name: oik/shortcodes/oik-codes.phpLines:
1 to 19 of 19
function bw_list_shortcodes( $atts = NULL ) { global $shortcode_tags; $ordered = bw_array_get( $atts, "ordered", "N" ); $ordered = bw_validate_torf( $ordered ); //bw_trace2( $shortcode_tags ); //bw_trace2( $ordered, "ordered" ); if ( $ordered ) { ksort( $shortcode_tags ); } //bw_trace2( $shortcode_tags, "shortcode_tags" ); add_action( "bw_sc_help", "bw_sc_help" ); add_action( "bw_sc_example", "bw_sc_example" ); add_action( "bw_sc_syntax", "bw_sc_syntax", 10, 2 ); bw_help_table(); foreach ( $shortcode_tags as $shortcode => $callback ) { bw_get_shortcode_syntax_link( $shortcode, $callback ); } bw_help_etable(); }View on GitHub View on Trac
Called by
1 to 2 of 2
Invoked by
Calls
1 to 5 of 5
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_get_shortcode_syntax_link() – Display the shortcode, syntax and link
- bw_help_etable() – table footer for bw_codes
- bw_help_table() – Table header for bw_codes
- bw_validate_torf() – Validate as true or false
