Support

Account

Home Forums Backend Issues (wp-admin) Simple URL Field Reply To: Simple URL Field

  • Hi,

    I’m not sure, but you could probably use the “acf/load_field” filter.
    https://www.advancedcustomfields.com/resources/acf-load_field/

    And a small function like :

    function read_only_field($field) {
    $field[‘readonly’] = true;
    return $field;
    }
    add_filter(‘acf/load_field’, ‘read_only_field’);

    You could target your field using the filter :

    add_filter(‘acf/load_field/name=field_name’, ‘read_only_field’);
    add_filter(‘acf/load_field/key=field_key’, ‘read_only_field’);