Support Forum ยป User Profile

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Update field settings after save post #40928
    Narcis NagyNarcis Nagy
    Participant

    rwmb_normalize_field does not seem to work with a clonable group subfield
    i have tried it like this:

    add_filter( 'rwmb_normalize_group_id_field', function($field) {
      foreach($field['fields'] as $f) {
        if ($f['id'] === 'text_id') {
          $f['readonly'] = true;
        }
      }
      return $field;
    });

    rwmb_normalize_field works with other fields that are not in a group

    i hvae als tried rwmb_normalize_meta_box but no success

Viewing 1 post (of 1 total)