[oik] plugins.com

WordPress plugins and themes

  • Home
  • 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 28 of 28
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

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

Information

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

Recent plugin updates

sb-breadcrumbs-block v0.6.1 Update to sb-breadcrumbs-block v0.6.1 for support for PHP 8.1 and PHP 8.2 ...
slog v1.5.1 Update to slog v1.5.1 for support for PHP 8.1 and PHP 8.2 ...
oik-presentation v2.0.1 Update to oik-presentation v2.0.1 for support for PHP 8.1 and PHP 8.2. ...
oik-video v1.2.4 Update to oik-video v1.2.4 for support for PHP 8.1 and PHP 8.2 ...
oik-tunes v1.0.0 Update to oik-tunes v1.0.0 for support for PHP 8.1 and PHP 8.2 ...

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-2023. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins
WordPress 6.4.1. PHP: 7.4.33. Memory limit: 768M