How to delete all categories programatically?
Question
Simple questions – how do I delete all categories programatically?
For instance this returns a list of all categories
$args = array(
"hide_empty" => 0,
"type" => "post",
"orderby" => "name",
"order" => "ASC"
);
$types = get_categories($args);
How do I simply delete them so I can replace them with other categories?
0
php, plugin-development, plugins
4 years
2020-03-03T07:50:11-05:00
2020-03-03T07:50:11-05:00 0 Answers
99 views
0
Leave an answer