Lines:
1 to 48 of 48
<?php // (C) Copyright Bobbing Wide 2014, 2015 /* function oik_clone_match_post_by_ID() – Match a post based on the post ID */ /* function oik_clone_match_post_by_slug() – Match a post based on the post’s slug */ /* function oik_clone_match_post_by_title() – Match a post based on the post’s title */ /* function oik_clone_match_post_by_content() – Match a post based on the post’s content */ /* function oik_clone_match_add_filter_field() – Add a filter to allow searching by guid */ /* function oik_clone_match_filter_where() – Implement "posts_where" for oik-clone match by GUID */ /* function oik_clone_match_post_by_GUID() – Match a post based on the post’s GUID */ /* function oik_clone_add_to_matched() – Add the found posts to the matched array */ /* function oik_clone_match_filters() – Define the filters to use for oik clone matching */ /** * Match the returned posts to ones in our site * * Here we add the filters that we want to use * then perform the matching for each post returned * The results are used to update the array of posts * * @param array $posts - array of posts from the target * @param array $fields - function oik_clone_match_posts( $posts, $fields ) { oik_clone_match_filters(); foreach ( $posts as $key => $data ) { $ID = $data['ID']; $matched_posts = oik_clone_match_post( $ID, $data, $fields ); $posts[$key]["matched_posts"] = $matched_posts; } return( $posts ); } * */View on GitHub
Called by
Invoked by
Calls
Call hooks
API Letters: