help .. how to update post and clear purchase note?

Question

Want to create a copy of the product on the user click;

wp_update_post(
array(
  'ID' => intval( $clone_product_id ),
  'post_title' => $product->get_title(),
  // ‘post_status' => $product_status,
  'post_author' => $user_id,
  'post_status' => 'trash',    
  'purchase_note' => ”
)

Above code is not working

0
user326428 2 years 2020-01-06T08:39:08-05:00 0 Answers 78 views 0

Leave an answer

Browse
Browse