• Resolved greumb

    (@greumb)


    Hi. When I assign terms to a user but then at a later date attempt to remove ALL terms for that user, these changes are not saved, i.e. the function wp_set_object_terms is not called in the code.

    By commenting out the following line in the code (line 499)…

    if (isset($_POST[$key])) {

    all terms are successfully deleted for that user (and any selected terms are saved as expected).

    Where all terms are unselected, $_POST[$key] is not set and therefore the argument $term / array($term) in the wp_set_object_terms function is null which is required for effectively deleting all terms.

    Cheers

    https://wordpress.org/plugins/lh-user-taxonomies/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Unselecting all existing terms’ is closed to new replies.