You shouldn’t need to use a custom SQL query – stick to the built-in method wp_delete_post()
. This will also clear out all term relationships too.
You shouldn’t need to use a custom SQL query – stick to the built-in method wp_delete_post()
. This will also clear out all term relationships too.