Home Forums Front-end Issues Disable certain taxonomy terms Reply To: Disable certain taxonomy terms

  • The only way that I can think to do this would be to create an acf/update_value filter for this field and then add any required term IDs to the value

    add_filter('acf/update_value/name=your-field_name', 'force_required_terms', 20, 3);
    function force_required_terms($value, $post_id, $field) {
      // required term ID 1234
      if (!in_array(1234, $value)) {
        $value[] = 1234;
      return $value;