WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Leo Blanchette
    Member
    Posted 7 months 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;

Reply

You must log in to post.

About this Topic