Support

Account

Home Forums General Issues how to change textarea’s new_lines default value

Unread

how to change textarea’s new_lines default value

  • Hi there! I am curious how can i change textarea defaults: want to have new_lines value to be 'br' instead of ''

    I tried prepare_field filter, but no change happened

    acf_prepare_textarea($field)
    {
    
      $field['new_lines'] = 'br';
    
      return $field;
    }
    
    add_filter('acf/prepare_field/type=textarea', 'my_acf_prepare_textarea');
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.