• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

[oik] plugins.com

WordPress plugins and themes

  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

oik_plugin_file_loaded() – Function to invoke when the file has been loaded

You appear to be a bot. Output may be restricted

Description

Function to invoke when the file has been loaded

All 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

void

Source

File name: oik/oik.php
Lines:
1 to 29 of 29
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( 'admin_enqueue_scripts', oik_admin_enqueue_scripts);
  }
  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

Published: February 2, 2018 | Last updated: February 2, 2018

Primary Sidebar

Information

Function name: oik_plugin_file_loaded
Plugin ref: oik – oik information kit
Version: 4.16.0
Sourcefile: oik.php
File ref: oik.php
Deprecated?: No
API Letters: F,L,O,P

Recent plugin updates

oik-fields v1.55.1
oik-fields v1.55.1 oik-fields v1.55.1 has been tested with WordPress 7.1. ...
oik v4.16.0
oik v4.16.0 Upgrade to oik v4.16.0 for many accessibility (a11y) improvements for both the front end and admin areas, plus a security fix. ...
oik-fields v1.55.0
oik-fields v1.55.0 Upgrade to oik-fields v1.55.0 for accessibility improvements to the featured image virtual field. ...
oik-css v2.4.0
oik-css v2.4.0 Upgrade to oik-css v2.4.0 for accessibility improvements for Low Color Contrast errors. ...
oik-unloader v0.4.0
oik-unloader v0.4.0 Update to oik-unloader v0.4.0 for improved accessibility of the active-plugins shortcode. Tested with WordPress 6.9 and PHP 8.4 ...

Footer

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: herb@bobbingwide.com

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2026. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins

WordPress version: 7.1.2

Gutenberg version: 24.0.0

PHP version: 8.2.35