You appear to be a bot. Output may be restricted
Description
Match a post based on the post's GUIDThere may be more than one post with the same GUID. This is possible if the same source post has been imported multiple times. Note: Don't load any posts with the same ID as the current post as this will list duplicates in "Self" processing
Usage
$array = oik_clone_match_post_by_GUID( $matched, $data );
Parameters
- $matched
- ( mixed ) required –
- $data
- ( object ) required – the "post" object to match against
Returns
array $matchesSource
File name: oik-clone/admin/oik-clone-match.phpLines:
1 to 14 of 14
function oik_clone_match_post_by_GUID( $matched, $data ) { oik_require( "includes/bw_posts.php" ); //p( "Matching {$data->ID} by GUID" ); $args = array( "numberposts" => -1 , "post_type" => "any" //, "exclude" => $data->ID ); oik_clone_match_add_filter_field( "AND guid = '" . $data->guid . "'" ); $posts = bw_get_posts( $args ); if ( $posts ) { $matched = oik_clone_add_to_matched( $matched, $posts, $data->ID, "guid" ); } return( $matched ); }View on GitHub