[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

oik_clone_source_site() – Dialog to discover which site to clone and parameters to use

You appear to be a bot. Output may be restricted

Description

Dialog to discover which site to clone and parameters to use

Usage

oik_clone_source_site();

Parameters

Returns

void

TO DO

Cache the data when we're talking to a remote site

TO DO

Implement different levels of Authentication: Basic, OAuth1 and Custom (e.g. oik-plugins authentication )

TO DO

Implement the page using tabs – so that MultiSite, WP-API and File import are separate pages.

Source

File name: oik-clone/admin/oik-clone-wp-api.php
Lines:

1 to 39 of 39
function oik_clone_source_site() {
  global $blog_urls;
  p( "Choose the source site to compare against." );
 
  //$source = bw_array_get( $_REQUEST, "_oik_clone_source", null );
  $source = oik_clone_source();
  $timeout = bw_array_get( $_REQUEST, "_oik_api_timeout", null );
 
  bw_form();
  stag( "table" );
  bw_textfield( "_oik_clone_source", 80, "Site URL", stripslashes( $source ) );
 
  if ( is_multisite() ) {
    //p( "Or select a site from the list" );
    
    oik_require( "admin/oik-clone-ms.php", "oik-clone" );
    $blog_urls = bw_get_blog_urls();
    bw_select( "_oik_ms_source", "Source blog", $oik_ms_source, array( '#options' => $blog_urls, '#optional' => true ) );
    
  } else { 
    //p( "Doh!" );
  }
  
  bw_textfield( "_oik_api_timeout", 4, "Timeout (secs)", stripslashes( $timeout ));
  etag( "table" );
  p( isubmit( "_oik_clone_list", "List content", null, "button-primary" ) );
  
  
  //h3( "Basic authentication" );
  //bw_textfield( "User name" );
  //bw_textfield( "Password" );
  //h3( "OAuth authentication" );
  //bw_textfield( "thingummy" );
  //p( "tbc" );
  //h3( "oik-plugins authentication" );
  etag( "form" );
 
    
}
 

 View on GitHub

Published: November 1, 2016 | Last updated: November 1, 2016

Information

Function name: oik_clone_source_site
Plugin ref: oik-clone – clone your WordPress content
Version: 2.0.0
Sourcefile: admin/oik-clone-wp-api.php
File ref: admin/oik-clone-wp-api.php
Deprecated?: No
API Letters:

Recent plugin updates

oik-themes v1.4.0 

Update to oik-themes v1.4.0 to support Full Site Editing (FSE) themes. FSE themes, which are currently experimental, deliver block based templates and template parts.

 ...
oik-clone v2.0.1 oik-clone v2.0.1 contains a fix for a 500 internal server error being produced when cloning content with certain taxonomy terms. ...
SB Chart block v0.1.1 

Update to SB Chart block v0.1.1 for improved enqueing of the chart.js Javascript and better colours in the Gutenberg palette.

 ...
Slog v1.3.1 

Update to Slog v1.3.1 for a new Driver tab and improved display of charts grouping Elapsed times.

 ...
SB-Chart-Block v0.0.8 SB-Chart-Block v0.0.8, a WordPress single block plugin, supports 4 different chart types; Line, Bar, Horizontal bar and Pie. ...

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: [email protected]

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-2021. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins