You appear to be a bot. Output may be restricted
Description
Perform checks on the source site
Confirm that the source site supports WP-API processing
Usage
oik_clone_source_site_check();
Parameters
Returns
void
Source
File name: oik-clone/admin/oik-clone-wp-api.php
Lines:
1 to 22 of 22
function oik_clone_source_site_check() { $api_url = null; $source = bw_array_get( $_REQUEST, "_oik_clone_source", null ); if ( $source ) { oik_require("shortcodes/oik-link.php" ); $url = bw_link_url( $source, null ); $url .= '/'; oik_require( "includes/oik-remote.inc" ); $req = bw_remote_head( $url ); if ( is_wp_error( $req ) ) { p( "Error" ); } else { $api_url = oik_clone_get_api_url( $req ); p( $api_url ); } } return( $api_url ); }