You appear to be a bot. Output may be restricted
Description
Implement "oik_clone_apply_informal_mapping" to the target post IDsAt the target we apply the mapping to the content when
- we have a candidate post ID
- there is a known mapping in table
- the ID passes the tests
Usage
$object = oik_clone_apply_informal_relationship_mapping( $post, $target_ids );
Parameters
- $post
- ( object ) required – the post object
- $target_ids
- ( array ) required – the mapping from source to target IDs
Returns
object the updated post objectSource
File name: oik-clone/admin/oik-clone-relationships.phpLines:
1 to 8 of 8
function oik_clone_apply_informal_relationship_mapping( $post, $target_ids ) { oik_require( "admin/class-oik-clone-informal-relationships-target.php", "oik-clone" ); $target_informal_relationships = new OIK_clone_informal_relationships_target( $target_ids ); //$target_informal_relationships->set_mapping( $target_ids ); $post->post_content = $target_informal_relationships->map_ids( $post->post_content ); $post->post_excerpt = $target_informal_relationships->map_ids( $post->post_excerpt ); return( $post ); }View on GitHub