Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged

2

To avoid an infinite loop on transition_post_status hook when using wp_update_post(), try: add_action('transition_post_status', 'new_product_add', 10, 3); function new_product_add($new_status, $old_status, $post) { if( $old_status != 'publish' && $new_status == 'pending' && !empty($post->ID) &&...


Top 50 recent answers are included