You appear to be a bot. Output may be restricted
Description
Register our shortcodes to shortcakeThe oik base plugin provides a service which allows each shortcode to specify help, shortcode syntax etc. Each shortcode implements a function with __syntax as the function name suffix The $syntax array is constructed using the bw_skv helper API. shortcake provides a similar service, although this is not currently lazy. For each of the registered shortcodes, if it's not already registered with shortcake, then map the syntax to shortcake and register it.
Usage
oik_register_shortcodes_to_shortcake();
Parameters
Returns
voidSource
File name: oik/oik-shortcake.phpLines:
1 to 15 of 15
function oik_register_shortcodes_to_shortcake() { do_action( "oik_add_shortcodes" ); oik_require( 'shortcodes/oik-codes.php' ); $sc_list = bw_shortcode_list(); add_filter( "bw_sc_shortcake_compatible", "bw_sc_shortcake_compatible" ); $sc_list = apply_filters( "bw_sc_shortcake_compatible", $sc_list ); bw_trace2( $sc_list, "shortcode list", false ); foreach ( $sc_list as $shortcode => $help ) { $registered = oik_registered_to_shortcake( $shortcode ); if ( !$registered ) { $sc_syntax = _bw_lazy_sc_syntax( $shortcode ); oik_register_shortcode_to_shortcake( $shortcode, $help, $sc_syntax ); } } }View on GitHub View on Trac