oik_main_init() – Implement the ‘init’ action

You appear to be a bot. Output may be restricted

Description

Implement the 'init' action

start oik and let oik dependent plugins know it's OK to use the oik API

Usage

oik_main_init();

Parameters

Returns

void

Source

File name: oik/oik.php
Lines:

1 to 23 of 23
function oik_main_init() {
  add_action( 'admin_menu', 'oik_admin_menu' );
  add_action( 'network_admin_menu', "oik_network_admin_menu" );
  add_action( "network_admin_notices", "oik_network_admin_menu" );
  add_action( "admin_bar_menu", "oik_admin_bar_menu", 20 );
  add_action( 'login_head', 'oik_login_head');
  add_action( 'admin_notices', "oik_admin_notices", 9 );
  
  add_filter( "_sc__help", "oik_oik_sc__help", 10, 2 );
  $bobbfunc = oik_require_lib_wrapper( "bobbfunc" );
  if ( $bobbfunc && !is_wp_error( $bobbfunc ) ) {
    bw_load_plugin_textdomain();
    
/**
 * Tell plugins that oik has been loaded.
*
* This allows plugins which are dependent upon oik to start using the oik APIs
* It doesn't mean that all the APIs are available.
*/
    do_action( 'oik_loaded' );
  }  else {
    bw_trace2( $bobbfunc, "bobbfunc?", false, BW_TRACE_ERROR );
  }
}
 

 View on Trac