Horje
how to delete all products woocommerce in phpmyadmin Code Example
how to delete all products woocommerce in phpmyadmin
DELETE relations.*, taxes.*, terms.*
FROM wp_term_relationships AS relations
INNER JOIN wp_term_taxonomy AS taxes
ON relations.term_taxonomy_id=taxes.term_taxonomy_id
INNER JOIN wp_terms AS terms
ON taxes.term_id=terms.term_id
WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type='product');
  
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type = 'product');
DELETE FROM wp_posts WHERE post_type = 'product';
Source: wpfluent.com




Php

Related
check if array values exists in another array Code Example check if array values exists in another array Code Example
500 error php Code Example 500 error php Code Example
woocommerce bulk product delete Code Example woocommerce bulk product delete Code Example
apache htaccess read from /public Code Example apache htaccess read from /public Code Example
check if array value exists in another array php Code Example check if array value exists in another array php Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9