You appear to be a bot. Output may be restricted
Description
Create oik-shortcode entries programmaticallyAfter the plugins, themes and APIs have been created we need to update the definitions of all the shortcodes
Usage
oik_create_codes_loaded();
Parameters
Returns
voidSource
File name: oik-shortcodes/admin/oik-create-codes.phpLines:
1 to 17 of 17
function oik_create_codes_loaded() { $required_component = oik_batch_query_value_from_argv( 1, null ); oik_require( "admin/oik-apis.php", "oik-shortcodes" ); $component_id = oiksc_get_component_by_name( $required_component ); do_action( "oik_add_shortcodes" ); oik_require( "admin/oik-shortcodes.php", "oik-shortcodes" ); $shortcodes = oik_create_codes_get_all_shortcodes(); foreach ( $shortcodes as $shortcode => $component ) { // if we have the information then create the shortcode echo PHP_EOL; echo "$shortcode: $component" . PHP_EOL; if ( $component == $required_component ) { oikb_get_response( "Continue?", true ); oik_create_codes_create_code( $shortcode, $component_id, $required_component ); } } }View on GitHub