You appear to be a bot. Output may be restricted
Description
Add the DIY shortcodes
Register the DIY shortcodes and define the filters that will provide shortcode help for the DIY shortcodes and override the links to the oik shortcode server for our DIY shortcodes. Note: There is no need to define syntax help for these shortcode as they don't accept parameters.
Usage
diy_oik_lazy_add_shortcodes();
Parameters
Returns
void
Source
File name: diy-oik/shortcodes/diy-oik.php
Lines:
1 to 21 of 21
function diy_oik_lazy_add_shortcodes() { $diy_codes = get_option( "diy_codes" ); if ( is_array( $diy_codes) && count( $diy_codes )) { //bw_trace2( $diy_codes ); foreach ( $diy_codes as $code => $diy_code ) { // $code = bw_array_get( $diy_code, "code", null ); $inactive = bw_array_get( $diy_code, "inactive", false ); if ( !$inactive ) { $expand_in_titles = bw_array_get( $diy_code, "title", false ); bw_add_shortcode( $code, "diy_oik_do_shortcode_simplified", __FILE__, $expand_in_titles ); //bw_add_shortcode( $code, "diy_oik_do_shortcode", __FILE__, $expand_in_titles ); } } add_filter( "_sc__help", "diy_oik_sc__help", 10, 2 ); //add_filter( "_sc__syntax", "diy_oik_sc__syntax", 10, 2 ); add_filter( "bw_sc_link", "diy_oik_bw_sc_link", 10, 3 ); } }