mofo.is.guilty I love you!
Thread Starter
ruocks
(@ruocks)
Sorry, I resolved. I did not realize that you have browsed their own posts and those of all that if I disable edit_other_posts users can not edit.
I have the same problem.
Anyone have some idea??
Thread Starter
ruocks
(@ruocks)
I resolved my problem
function test($post_id){
$post = get_post($post_id);
$post = get_object_vars($post);
unset($post[ID]);
$blog_id = 4;
switch_to_blog($blog_id);
remove_action('save_post', 'test');
wp_insert_post($post, true);
add_action('save_post', 'test');
restore_current_blog();
}
add_action( 'save_post', 'test')