WordPress.org

Forums

wp_remove_object_terms() Returning false despite proper use? (1 post)

  1. Leo Blanchette
    Member
    Posted 1 year ago #

    Very odd problem.

    wp_remove_object_terms() is returning false, despite proper use.
    ( http://codex.wordpress.org/Function_Reference/wp_remove_object_terms )

    Is there anything strange or buggy concerning this function? I see very little mention of it online...

    Using WP 3.8

    case 3:
    
        	ss_categories_dropdown( $dropdown_id , 0 , $tax );
    
        	$ids = explode( ',' , $_POST[ 'ids' ] );
        	$cat = $_POST['cat'];
    
        	if ( $tax == 'image-type' )
        	{
    
        		foreach($ids as $id){
    
        			wp_remove_object_terms( $id, $cat, $tax );
    
        		}
    
        	}
    
        	echo '<p class="description">Category "' . $term->name
        	. '" removed from selected images.</p>';
    
        	break;

Topic Closed

This topic has been closed to new replies.

About this Topic