[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

oiksc_create_api() – Respond to the submit button by creating an oik_api

You appear to be a bot. Output may be restricted

Description

Respond to the submit button by creating an oik_api

Processing of the submit button depends on which fields are set Get the plugin, file and API name <pre> plugin file API processing

  • list the plugins
  • y – – list the files for the plugin
  • y y – list the APIs for the selected file
  • y y y create the API
</pre>

Usage

oiksc_create_api();

Parameters

Returns

void

Source

File name: oik-shortcodes/admin/oik-apis.php
Lines:
1 to 31 of 31
function oiksc_create_api() {
  $create = bw_array_get( $_REQUEST, "_oiksc_create_api", null );
  oiksc_autoload();
  if ( $create ) {
    // $plugins = _oiksc_get_plugins(); 
    $plugin_id = _oiksc_get_plugin(); 
    $files = _oiksc_get_files( $plugin_id );
    
    array_unshift( $files, 0 );
    
    $file = _oiksc_get_file( $files );
    //$apis = _oiksc_get_apis( $files[$file] );
    $api = _oiksc_get_api();
    $type = _oiksc_get_type();
    // $code = _oiksc_get_shortcode(); **?**
    if ( $type && $api && $file && $plugin_id ) {
      oik_require( "includes/bw_posts.php" ); 
      $post_id = _oiksc_create_api( $plugin_id, $api, $files[$file], $type ); // Note: No $title 
      
      //$content = bw_ret();
      //oik_require( "classes/class-oiksc-parsed-source.php", "oik-shortcodes" );
      //$plugin_slug = get_post_meta( $plugin_id, "_oikp_slug", true );
     // $component_type = oiksc_query_component_type( $plugin_slug );
     // global $plugin;
     // $plugin = $plugin_slug;
     // bw_update_parsed_source( $post_id, $content, oiksc_real_file( $files[$file], $component_type) );
     // echo $content; 
      oiksc_report( $post_id, "API", "creation" );      
    }
  }
}
 
 View on GitHub

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

Information

Function name: oiksc_create_api
Plugin ref: oik block shortcode and API server
Version: 1.41.1
Sourcefile: admin/oik-apis.php
File ref: admin/oik-apis.php
Deprecated?: No
API Letters: A,C,O

Recent plugin updates

oik-weight-zone-shipping v0.2.6 oik-weight-zone-shipping v0.2.6 has been tested with WooCommerce 7.4.0. ...
sb-chart-block v1.2.3 SB Chart Block v1.2.3 contains a fix for an Uncaught Error: Call to undefined function bw_trace2()  ...
SB Chart Block v1.2.1 Update to SB Chart Block v1.2.0 for custom colors, font size options and multiple y-axis charts.  ...
oik-css v2.1.0 Update to oik-css v2.1.0 for the ability to style CSS and GeSHi output in documentation. ...
oik-types v2.3.0 Update to oik-types v2.3.0 for improved control over sort order on archives ...

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.1.1. PHP: 7.4.33. Memory limit: 768M