You appear to be a bot. Output may be restricted
Description
Load the selected post from the MS blog
Usage
$$post = oik_clone_load_ms_post( $blog_id, $post_id );
Parameters
- $blog_id
- ( ID ) required – ID of the WPMS blog
- $post_id
- ( ID ) required – ID of the post to load
Returns
$post the loaded postSource
File name: oik-clone/admin/oik-clone-ms.phpLines:
1 to 16 of 16
function oik_clone_load_ms_post( $blog_id, $post_id ) { $slave = site_url( '', "https"); switch_to_blog( $blog_id ); $post = oik_clone_load_post( $post_id ); oik_require( "admin/oik-clone-relationships.php", "oik-clone" ); $relationships = oik_clone_relationships( $post ); bw_trace2( $relationships, "relationships" ); $mapping = $relationships->mapping( $slave ); bw_trace2( $mapping, "mapping"); $mapping = json_encode( $mapping ); $_REQUEST[ 'mapping'] = $mapping; $post = oik_clone_apply_mapping( $post ); //print_r( $post ); restore_current_blog(); return( $post ); }View on GitHub