I need Woocommerce Product publish, update and delete hooks if any one know then please inform me.
I find this hook :
add_action('transition_post_status', 'wpse_110037_new_posts', 10, 3);
function wpse_110037_new_posts($new_status, $old_status, $post) {
if(
$old_status != 'publish'
&& $new_status == 'publish'
&& !empty($post->ID)
&& in_array( $post->post_type,
array( 'product')
)
) {
//add some cde here
}
}
but it's only display product id, title, publish status etc....but i want product price, category, tag, brand and stock status.
So please replay me if any one know.
Thanks, Ketan.
product
otherwise it will run for all post types. – Xavier