• Resolved spacetime_jr

    (@spacetime_jr)


    Hi, I want to additional function after the new product has been saved / created, i searched for the hook, but i can’t find any, some solution i found is to use “transition_post_status” hook, and check for post type
    $old_status != ‘publish’
    && $new_status == ‘publish’
    && !empty($post->ID)
    && in_array( $post->post_type,
    array( ‘product’)
    )

    but in this hook, the meta for the woocommerce is not yet saved, is there any hook i can use after, it save the meta?

    thanks 🙂

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Hook after product created’ is closed to new replies.