You appear to be a bot. Output may be restricted
Description
Implement "oik_clone_tablerow_matched"Filter the matched array to provide a list of possible posts to compare against If there's no match then we can offer "Add new" post type This assumes that the post_type is available. Actually we can provide Add new even if there are matches.
Usage
oik_clone_tablerow_matched( $post, $fields );
Parameters
- $post
- ( mixed ) required –
- $fields
- ( mixed ) required –
Returns
voidSource
File name: oik-clone/admin/oik-clone.phpLines:
1 to 19 of 19
function oik_clone_tablerow_matched( $post, $fields ) { $matches = $post['matched_posts']; $matched = null; foreach ( $matches as $ID => $match ) { //$matched = $match; $matched .= $ID; //$matched_title = $match['post_title']; //$matched_name = $match['post_name']; bw_trace2( $match, "matched array"); } //$post['matched'] = $matched; //$post['matched_title'] = $matched_title; //$post['matched_name'] = $matched_name; $post['matched'] = oik_clone_add_new_link( $post ); return( $post ); }View on GitHub