Support

Account

Home Forums ACF PRO Hide a field in backend if non admin Reply To: Hide a field in backend if non admin

  • function my_acf_load_field( $field ) {
     
        return;
    
    }
    add_filter('acf/load_field/name=acf_primary_role', 'my_acf_load_field');

    I found this solution? is this a good way to do it? Of course this code should be wrapped in a if not admin statement