[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

_ca_doaplugin() – Create the APIs for a component

You appear to be a bot. Output may be restricted

Description

Create the APIs for a component

List the files for the component Components supported: "wordpress" – all files in the WordPress installation excluding wp-content <i>plugin</i> – all the files in the named plugin <i>theme</i> – all the files in the named theme Process each file in the component, defining the file, classes, methods and APIs

Usage

_ca_doaplugin( $component, $previous, $start );

Parameters

$component
( string ) required – the name of the plugin or theme, or "wordpress"
$previous
( string ) optional – the previous version to compare against – for performance
$start
( mixed ) optional default: 1 –

Returns

void

Source

File name: oik-batch/createapi2.php
Lines:
1 to 36 of 36
function _ca_doaplugin( $component, $previous=null, $start=1 ) {
  global $plugin, $apikey;
  $plugin = $component;
  if ( $plugin ) {
    $component_type = oiksc_query_component_type( $plugin );
    if ( $component_type ) {
      echo "Doing a $component_type: " . $plugin . PHP_EOL;
  
      if ( $apikey ) {
        echo "Using apikey=$apikey" . PHP_EOL;
      } else { 
        echo "Missing --apikey= parameter" . PHP_EOL;
        gobang();
        oikb_login(); 
      }  
      $response = oikb_get_response( "Continue?", true );
      if ( $response ) {
        oik_require( "admin/oik-apis.php", "oik-shortcodes" );
        //wp_register_plugin_realpath( WP_PLUGIN_DIR . "/$plugin/." );
        oik_require( "oik-list-previous-files.php", "oik-batch" );
        
        $files = oikb_list_changed_files( $previous, $plugin, $component_type );
  
        if ( null === $files ) {
          $files = oiksc_load_files( $plugin, $component_type );
          $files = oikb_maybe_do_files( $files, $previous, $component, $component_type );
        }
        oiksc_do_files( $files, $plugin, $component_type, "_ca_dofile", $start );
      }
    } else {
      echo "Invalid plugin/theme: $component" . PHP_EOL;
    }       
  } else {
    echo "Missing --plugin= parameter" . PHP_EOL;
  } 
}
 
 View on GitHub

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

Information

Function name: _ca_doaplugin
Plugin ref: oik-batch
Version: 1.0.0
Sourcefile: createapi2.php
File ref: createapi2.php
API type: private
Deprecated?: No
API Letters: C,D,_

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