You appear to be a bot. Output may be restricted
Description
Implement "oik_fields_loaded" action for oik-shortcodesRegister the custom post types, taxonomies and fields for oik-shortcodes
Usage
oik_shortcodes_init();
Parameters
Returns
voidSource
File name: oik-shortcodes/oik-shortcodes.phpLines:
1 to 41 of 41
function oik_shortcodes_init() { oik_register_oik_shortcodes(); oik_register_oik_sc_param(); oik_register_oik_shortcode_example(); //oik_register_oik_sc_mapping(); oik_register_file(); oik_register_class(); oik_register_hook(); oik_register_api(); oik_register_parsed_source(); //oik_register_parse_status(); oik_register_component_version_field(); oik_register_block_editor_stuff(); oik_register_blocks_catalogued(); add_action( 'the_content', "oiksc_the_content", 1, 1 ); add_action( 'oik_admin_menu', 'oiksc_admin_menu' ); add_filter( 'wp_insert_post_data', 'oiksc_wp_insert_post_data', 10, 2 ); add_action( "oik_add_shortcodes", "oik_shortcodes_add_shortcodes" ); /** * We could move this logic to oik * but since we need oik-plugins, oik-themes and oik-shortcodes * all together it's just as good here as any. * * For Gutenberg we no longer remove the wp_trim_excerpt filter function. * Perhaps we should add our filter earlier in the process! */ //remove_filter( "get_the_excerpt", "wp_trim_excerpt" ); add_filter( "get_the_excerpt", "oik_get_the_excerpt", 9, 2 ); add_filter( "request", "oiksc_request" ); add_filter( 'request', 'oiksc_wordpress_cache_redirect') <; add_action( "run_oik-shortcodes.php", "oiksc_run_oik_shortcodes" ); add_action( "run_oik-create-codes.php", "oiksc_run_oik_create_codes" ); add_action( "genesis_404", "oiksc_genesis_404" ); //oik_shortcodes_define_shortcode_parameter_server(); }View on GitHub