Skip to main content
1 vote

Best way to programmatically remove a category/term from a post

If you want to specifically remove an object term this is a fine solution that worked for me: $post_id; $term_to_be_removed = get_term_by('name', 'Term Name', 'taxonomy'); if (has_term($...
Hector Siman's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible