You appear to be a bot. Output may be restricted
Description
Update the post_meta data in the target postHere we simply load and delete then insert new entries. There is no optimisation based in existing key/value pairs.
Usage
oik_clone_update_post_meta( $post, $target );
Parameters
- $post
- ( object ) required – which contains the post_meta array to create
- $target
- ( ID ) required – the ID of the post to update
Returns
voidSource
File name: oik-clone/admin/oik-clone-actions.phpLines:
1 to 9 of 9
function oik_clone_update_post_meta( $post, $target ) { oik_clone_delete_all_post_meta( $target ); //oik_require( "admin/oik-clone-relationships.php", "oik-clone" ); if ( function_exists( "oik_clone_filter_all_post_meta" ) ) { oik_clone_filter_all_post_meta( $post ); } oik_clone_insert_all_post_meta( $post, $target ); }View on GitHub