You appear to be a bot. Output may be restricted
Description
Implement "oik_clone_build_list" filter for informal relationshipsThe post_content and post_excerpt may contain references to other posts by ID we need to map these to the target IDs The client will create the mapping, and the server will apply it
Usage
$array = oik_clone_build_list_informal_relationships( $source_ids, $post );
Parameters
- $source_ids
- ( array ) required – the currently known IDs to be mapped
- $post
- ( object ) required – the post object
Returns
array an updated array of source IDsSource
File name: oik-clone/admin/oik-clone-relationships.phpLines:
1 to 11 of 11
function oik_clone_build_list_informal_relationships( $source_ids, $post ) { bw_backtrace(); bw_trace2(); oik_require( "admin/class-oik-clone-informal-relationships-source.php", "oik-clone" ); $content_informal_relationships = new OIK_clone_informal_relationships_source( $source_ids ); $content_informal_relationships->find_ids( $post->post_content ); $content_informal_relationships->find_ids( $post->post_excerpt ); bw_trace2( $content_informal_relationships, "content_informal_relationships", false, BW_TRACE_VERBOSE ); return( $content_informal_relationships->source_ids ); }View on GitHub