woocommerce_delete_

woocommerce_delete_

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_delete_') is found 1 times:

  • /includes/data-stores/class-wc-product-data-store-cpt.php line 379
    		if ( $args['force_delete'] ) {
    			do_action( 'woocommerce_before_delete_' . $post_type, $id );
    			wp_delete_post( $id );
    			$product->set_id( 0 );
    			do_action( 'woocommerce_delete_' . $post_type, $id );
    		} else {
    			wp_trash_post( $id );
    			$product->set_status( 'trash' );
    			do_action( 'woocommerce_trash_' . $post_type, $id );
    		}
    	}