According to this change, in version 6.3 WordPress was updated to support emptying the terms assigned to a post by passing an empty value in a way that won’t cause an error in PHP 8.1+. PHP treats ‘0’ as empty, so your code is treated as setting no terms on the post.
If you want the previous behaviour you should pass an array with '0'
as the only value:
wp_set_object_terms( $vid, array( '0' ), 'priorities');
Related Posts:
- Custom columns on edit-tags.php main page
- Is there a way to ‘Lock’ a Taxonomy?
- wp_insert_term is adding a term that has no name
- Get total number of comments from posts in a specific custom taxonomy
- Display one post from each term in a custom taxonomy [closed]
- Is it possible to add taxonomies to user profiles?
- Get terms from multiple taxonomies
- Connect Users and Taxonomies
- WordPress json api taxonomy index method
- get_terms showing link to category even if all posts are drafts
- How to restrict on selecting child taxonomy
- Sort Custom Taxonomy Terms in admin by custom order
- Is it possible to sort the post based on a custom field?
- How do I get terms as a list for a specific post?
- Change in custom taxonomy permalink causes 404 error for another custom taxonomy
- Checking if a Page has an Associated Term?
- Displaying ACF image field [closed]
- How get custom field from custom taxonomy?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get multiple term objects by ids
- Echo custom taxonomy term name
- Taxonomy.php issue with search and filters
- Move terms from one taxonomy to another keeping the hierarchy
- How can I get WP to build a feed based on multiple taxonomy terms
- Getting the selected terms for custom taxonomies in the editor
- Set custom post type terms by id without knowing taxonomy
- Catchable fatal error on custom category post
- How to add contents of a custom field to a taxonomy term list?
- How to target parent product category and its children using WooCommerce?
- wordpress testimonials
- Custom Taxonomies not retaining hierarchy while importing from one site to another
- Remove custom taxonomy column from my custom post type columns
- Output single post custom taxonomy child terms
- Check if custom taxonomy has posts with get_categories()
- Website loading slowly – Advanced Custom Fields images
- How to check if a post has at least 2 terms from a custom taxonomy attached?
- Custom post type Category Display
- Custom Taxonomy template not display
- Terms Per Page in custom taxonomy Admin
- How to get list of only custom taxonomies?
- pre_get_posts post_meta event
- How can I add a custom permalink to a term?
- Custom taxonomy display name issue
- Variable Not Working Inside is_author() Array
- How can I get Taxonomy Images to work with ‘orderby’ argument?
- How do I hide a term from non-admin users in get_the_term_list?
- Disable a Custom Taxonomies default save mechanism
- Replicate Drupal form options as taxonomies?
- Query Results not being displayed please help
- Can I output a custom taxonomy as a submenu in the site navigation menu?
- Sort taxonomy page alphabetically by meta rather than default post date
- Random category URLs not working
- Listing only custom post types with two required categories?
- custom taxonomies label in hebrew
- Custom taxonomy throw error 404
- using wp_insert_term to create custom terms for a custom taxonomy from frontend form,
- Product custom taxonomy is not found when space in name
- Display term picture of each post in a loop
- Get Terms of custom Taxonomy of products with certain Product Category
- Clean Taxonomy terms in new post type wordpress
- Custom taxonomy only gets saved in quick edit
- How to exclude the common terms?
- Get tags name under custom taxonomy in wordpress
- Custom dropdown list taxonomy not saved
- WordPress taxonomy terms archive template help
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- Show message if term slug changed
- Get post meta value outside of the loop
- Unable to create a new taxonomy
- Code inside conditional is_tax() only working when term has posts
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- Get link for taxonomy to show top-level terms
- Pagination for Custom Taxonomy
- Can I make a taxonomy meta box into dropdowns for each parent category?
- Post not showing in my custom advanced search
- sort Posts by custom user filed
- Change order custom taxonomy
- WordPress taxonomy radio buttons
- Register custom taxonomy from a Advenced custom field option page
- get_terms returns array starting at 4
- register and insert category manually
- How to get multiple Taxonomies not All Taxonomies?
- Multiple category lists on one page
- New rewrite rules for custom taxonomy and reuse default
- How to limit posts to 1 from each term with tax_query?
- Can I use $query->set() (in a pre_get_posts() hook) with a custom taxonomy in WP 3?
- Insert taxonomy term to different table
- get_the_terms inside save_post gives old terms
- wp_get_object_terms count on taxonomies within an category archive
- Hook to filter based on form value and insert term
- Change get_author_posts_url / Author URL via filter
- Prevent random entries in hierarchical false taxonomies
- Exporting CSV of users with custom user taxonomies out of WordPress
- Pagination links not working for custom taxonomy
- Filter posts and custom taxonomy using add_rewrite_rule
- Get taxonomy that is attached to post with all its parents
- Querying posts globally based on custom taxonomy with its own taxonomymeta table
- Sub-pages of Custom Taxonomies
- How to delete unused terms?
- Optional taxonomy in cpt permalink