add_action('save_post_product', 'mp_sync_on_product_save', 110, 3);
function mp_sync_on_product_save( $post_id, $post, $update ) {
if($_POST['_auction_dates_to']){
$date = new DateTime($_POST['_auction_dates_to']);
update_post_meta( $post_id, 'date-testingx', $date->getTimestamp() ) ;
}
}
Convert Date to Timestamp and save in woocommerce product metadata
/
0
Related posts
Perkara yang perlu ada: Server yang sudah setup docker untuk dijadikan VPN server PC atau phone sebagai client untuk masuk ke Server Langkah pertama, Masuk... Continue reading
For front end Elementor For Admin Form Continue reading
Leave a reply