woocommerce_trash_

woocommerce_trash_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_trash_') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 383
    			do_action( 'woocommerce_delete_' . $post_type, $id );
    		} else {
    			wp_trash_post( $id );
    			$product->set_status( 'trash' );
    			do_action( 'woocommerce_trash_' . $post_type, $id );
    		}
    	}
    
    	/*
    	|--------------------------------------------------------------------------
    	| Additional Methods