Support

Account

Home Forums ACF PRO Creating a read only field Reply To: Creating a read only field

  • You can use the acf_save_post to update the field.
    https://www.advancedcustomfields.com/resources/acf-save_post/

    The following function would disable the field on load.

    add_filter('acf/load_field/name=field_name', 'sampleFunction');
    function sampleFunction( $field ){ $field['disabled']='1'; return $field; }