You appear to be a bot. Output may be restricted
Description
Function to invoke when the file has been loadedAll of the oik plugins and many of the common functions, include calls to bw_trace(), bw_trace2() or bw_backtrace() so we need to include bwtrace.inc As of oik v2.3 the "init" action is invoked after most other plugins. This allows oik-fields and oik-types to define overrides to registered post types and taxonomies. In oik 2.4 I tried not calling oik_main_init() for AJAX requests but this was more troublesome than beneficial since there are many vanilla WordPress functions that can fail if post types are not registered. In oik 3.0.3 I increased the priority to 20, to allow oik-types to apply overrides to the Genesis theme framework's definitions.
Usage
oik_plugin_file_loaded();
Parameters
Returns
voidSource
File name: oik/oik.phpLines:
function oik_plugin_file_loaded() { require_once( "libs/oik_boot.php" ); oik_lib_fallback( dirname( __FILE__ ) . '/libs' ); add_filter( "oik_query_libs", "oik_query_libs_query_libs" ); add_action( "oik_lib_loaded", "oik_oik_lib_loaded" ); oik_require_lib( "bwtrace" ); oik_require_lib_wrapper( "bobbfunc" ); oik_require_lib_wrapper( "class-BW-" ); //require_once( "oik-add-shortcodes.php" ); oik_require_lib_wrapper( 'oik-shortcodes' ); require_once( "includes/bobbcomp.php" ); if ( defined('DOING_AJAX') && DOING_AJAX ) { oik_require( "includes/oik-ajax.php" ); oik_ajax_lazy_init(); } else { add_action('wp_enqueue_scripts', 'oik_enqueue_stylesheets', 11); add_action( 'admin_enqueue_scripts', 'add_thickbox' ) <; } add_action( 'init', 'oik_main_init', 20 ); add_action( 'init', 'oik_register_dynamic_blocks', < 21 ); add_action( 'rest_api_init', 'oik_rest_api_init', < 20 ); add_filter( "attachment_fields_to_edit", "oik_attachment_fields_to_edit", null, 2 ); add_filter( "attachment_fields_to_save", "oik_attachment_fields_to_save", null, 2 ); add_filter( 'oembed_remote_get_args', 'oik_oembed_remote_get_args', < 10, 2 ); //remove_filter( 'oembed_dataparse', 'wp_filter_oembed_result', 10 ); }View on GitHub View on Trac