[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_doapis_local() – Create the apis for a particular file in a plugin

You appear to be a bot. Output may be restricted

Description

Create the apis for a particular file in a plugin

Obtain a list of the APIs in the source file. For each API send a message to the server to create/update the API. Note: We ignore classes – these are created dynamically

Usage

_ca_doapis_local( $file, $plugin_p, $component_type );

Parameters

$file
( string ) required – file name to load
$plugin_p
( mixed ) required –
$component_type
( mixed ) required –

Returns

void

Source

File name: oik-shortcodes/admin/oik-create-apis.php
Lines:
1 to 18 of 18
function _ca_doapis_local( $file, $plugin_p, $component_type ) {
  global $plugin;
  $plugin = $plugin_p;
  echo "Processing valid: $plugin $file $component_type" . PHP_EOL;
  $apis = _oiksc_get_apis2( $file, true, $component_type, $plugin_p );
  $file = strip_directory_path( ABSPATH, $file );
  foreach ( $apis as $api ) {
    $apiname = $api->getApiName();
    echo "Processing API: $apiname, $file, $plugin, $component_type " . PHP_EOL;
    $needs_processing = _ca_does_api_need_processing( $api, $file, $component_type, $plugin );
    if ( $needs_processing ) {
      oiksc_local_oiksc_create_api( $plugin, $file, $component_type, $api );
      $discard = bw_ret();
    } else {
      echo "Nothing to do for: $apiname" . PHP_EOL;
    }  
  }
}
 
 View on GitHub

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

Information

Function name: _ca_doapis_local
Plugin ref: oik block shortcode and API server
Version: 1.41.3
Sourcefile: admin/oik-create-apis.php
File ref: admin/oik-create-apis.php
API type: private
Deprecated?: No
API Letters: C,D,L,_

Recent plugin updates

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 ...
oik-media v0.1.1 Update to oik-media v0.1.1 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