wp_set_object_terms > Enhanced Media Library

by venomphil   Last Updated June 20, 2018 11:08 AM

Im trying to programmatically set a taxonomy term with the plugin Enhanced Media Library. Ive written a test

wp_set_object_terms($image_id, $term_id, 'media_category', true);

But this takes two refreshes to execute, does anyone know why?



Related Questions


Merging custom taxonomies and removing duplicates

Updated November 09, 2017 15:08 PM

Removing a taxonomy term

Updated April 04, 2017 08:08 AM

Create a pre-filtered version of the Media Library

Updated September 04, 2017 01:08 AM


Why does wp_remove_object_terms not work?

Updated April 01, 2018 06:08 AM