Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

remove wordpress products all at once

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';
Comment

PREVIOUS NEXT
Code Example
Typescript :: check already exists from non deleted rows laravel 
Typescript :: ts react props type 
Typescript :: how to get docker stats using shell script 
Typescript :: nodejs express multer s3 
Typescript :: DAX check if value exists in another table 
Typescript :: swal fire 
Typescript :: nested slots in vue 
Typescript :: generics functional component 
Typescript :: getserversideprops vs getstaticprops 
Typescript :: deep partial typescript 
Typescript :: typescript list concat 
Typescript :: google sheets new line 
Typescript :: go through each element of a dictionary typescript 
Typescript :: accessing list elements in dictionary python 
Typescript :: typescript returntype remove promise 
Typescript :: get formcontrol value 
Typescript :: Strong typed variables typescript 
Typescript :: how to restrict alphabets in input field in angular 
Typescript :: typescript value in enum 
Typescript :: Parameter type from function TypeScript 
Typescript :: typescript make object optional 
Typescript :: dota 2 space to center hero 
Typescript :: react tailwind css components npm 
Typescript :: typescript playground 
Typescript :: find common elements in two flutter 
Typescript :: onSubmit for form in antd 
Typescript :: python remove all double elements from list 
Typescript :: loop trhough list of lists in python and find single elements 
Typescript :: Push Type Typescript 
Typescript :: generic typescript 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =