[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

createapis_loaded() – Function to invoke when createapi2.php is loaded

You appear to be a bot. Output may be restricted

Description

Function to invoke when createapi2.php is loaded

Syntax: $argv[0] –plugin= [–site= –user= –pass= –apikey=] –name=api –previous=previous –start=start Note: createapi2.php is not designed to be called by oik-batch.php as it needs to obtain parameters using oikb_getopt()

Usage

createapis_loaded( $argc, $argv );

Parameters

$argc
( mixed ) required –
$argv
( mixed ) required –

Returns

void

TO DO

remove this limitation Include files are selected from wp-settings.php Quite a few were added in WordPress 4.4.x

Source

File name: oik-batch/createapi2.php
Lines:
1 to 77 of 77
function createapis_loaded( $argc, $argv ) {
  echo "In createapis_loaded" . PHP_EOL ;
  if ( !function_exists( "oik_batch_run_script" ) ) {
    require_once( "oik-batch.php" );
  }
  if ( defined( 'WP_SETUP_CONFIG' ) ) {
    if ( true == 'WP_SETUP_CONFIG' ) {
      bw_trace2( "WP_SETUP_CONFIG is already defined as true" );
    } else {
      bw_trace2( "WP_SETUP_CONFIG is already defined as false" );
    }   
  } else {  
    define( 'WP_SETUP_CONFIG', true );
    // Do we need these now?
  
    require_once( ABSPATH . WPINC . "/http.php" );
    require( ABSPATH . WPINC . '/class-http.php' );
    
    // Some, or all of these are needed for WordPress 4.4.x
    require( ABSPATH . WPINC . '/class-wp-http-streams.php' );
    require( ABSPATH . WPINC . '/class-wp-http-curl.php' );
    require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );
    require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );
    require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );
    require( ABSPATH . WPINC . '/class-wp-http-response.php' );

    
    
    
    require_once( ABSPATH . "wp-admin/includes/plugin.php" );
    require_once( ABSPATH . WPINC . "/shortcodes.php" );
    require_once( ABSPATH . WPINC . "/theme.php" );
   
    oik_require( "/libs/bobbfunc.php" );
    oik_require( "bobbcomp.inc" );
    oik_require( "oik-login.inc", "oik-batch" );
    
    $plugin = bw_array_get( oikb_getopt(), "plugin", null );
    echo "Plugin/theme: $plugin" . PHP_EOL;
    
    global $apikey;
    $apikey = bw_array_get( oikb_getopt(), "apikey", null ); 
    echo "apikey: $apikey" . PHP_EOL;
    
    global $selected_api;
    $selected_api = bw_array_get( oikb_getopt(), "name", null );
    echo "api: $selected_api!" . PHP_EOL;
    
    
/**
     * We can only use previous= when we've chosen a specific plugin
     */
    $previous = bw_array_get( oikb_getopt(), "previous", null );
    echo "Previous: $previous" . PHP_EOL;
    
/**
 * Use start to restart the processing from a particular point
 * Again, only really relevant for a single plugin
 */
    $start = bw_array_get( oikb_getopt(), "start", 1 );
    echo "Start: $start" . PHP_EOL;
    
    
    if ( $plugin ) {
      $component = $plugin; // $argv[1];
    } else {
      oik_require( "list_oik_plugins.php", "oik-batch" );
      $component = list_oik_plugins();
    } 
    oik_require( "admin/oik-apis.php", "oik-shortcodes" );
    oik_require( "oik-ignore-list.php", "oik-batch" );
    
    $components = bw_as_array( $component );
    foreach ( $components as $component ) {
      _ca_doaplugin( $component, $previous, $start );
    }  
    //echo "done" .  PHP_EOL;
  }
}
 
 View on GitHub

Published: March 14, 2017 | Last updated: March 14, 2017

Information

Function name: createapis_loaded
Plugin ref: oik-batch
Version: 1.0.0
Sourcefile: createapi2.php
File ref: createapi2.php
Deprecated?: No
API Letters: C,L

Recent plugin updates

oik v4.9.2 Upgrade to oik v4.9.2 for support for PHP 8.1 and PHP 8.2. ...
oik-block v0.3.0 oik-block v0.3.0 no longer displays the Editor selection meta box ...
oik-blocks v1.4.3 Upgrade to oik-blocks v1.4.3 for PHP 8.2 support. ...
cookie-cat v1.4.6 Upgrade to cookie-cat v1.4.6 for PHP 8.1 & PHP 8.2 support. ...
oik-fields v1.54.0 oik-fields v1.54.0 caters for the deprecation of get_page_by_title() in WordPress 6.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.3.1. PHP: 7.4.33. Memory limit: 768M