Support

Account

Home Forums Feature Requests Add disabled custom fields.

Helping

Add disabled custom fields.

  • I have a field that the Contributor does not need to enter anything. It would be neat to be able to have the field disabled in the new-post.php page.

  • create an acf/load_field filter

    
    add_filter('acf/load_field/name=your_field_name', 'disable_acf_field');
    function disable_acf_field($field) {
      $field['disabled'] = 1;
      return $field;
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.