You appear to be a bot. Output may be restricted
Description
Display the selected posts and find out what the user wants to do with them
Usage
oik_clone_selection_criteria();
Parameters
Returns
void
Source
File name: oik-clone/admin/oik-clone-wp-api.php
Lines:
1 to 31 of 31
function oik_clone_selection_criteria() { $api_url = oik_clone_source_site_check(); if ( $api_url ) { //oik_require( "oik-wp-api.php", "oik-batch" ); $args = array( "timeout" => $timeout ); $json_posts = oik_clone_get_api_route( $api_url, "/posts", $args ); //print_r( $json_posts ); $fields = bw_as_array( "ID,title,slug,type,guid" ); $posts = oik_clone_list_posts( $json_posts, $fields ); p( "Displaying results from $api_url" ); oik_clone_display_posts( $posts, $fields ); } else { $oik_ms_source = oik_clone_ms_source(); if ( $oik_ms_source ) { $fields = bw_as_array( "ID,post_title,post_name,post_type,guid" ); $posts = oik_clone_list_ms_posts( $oik_ms_source, $fields ); oik_require( "admin/oik-clone-match.php", "oik-clone" ); $posts = oik_clone_match_posts( $posts, $fields ); $fields['matched'] = 'matched'; $fields[] = 'actions'; //$fields['matched_title'] = 'matched_title'; oik_clone_display_header(); oik_clone_display_posts( $posts, $fields ); } else { p( "Nothing selected" ); } } }