Exclude Fields With Personal Information

This snippet shows you how to exclude fields with personal information from instances of the {all_fields} merge tag that include the custom modifier: {all_fields:exclude[persInfoFields]}.

Code

Filename: gw-all-fields-exclude-fields-with-personal-info.php

<?php
/**
 * Gravity Wiz // Gravity Forms // Exclude Fields With Personal Information
 *
 * This snippet shows you how to exclude fields with personal information from instances
 * of the {all_fields} merge tag that include the custom modifier: {all_fields:exclude[persInfoFields]}.
 */
add_filter( 'gwaft_modifier_value_persInfoFields', function() {
	return array( 1, 2, 3 );
});

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.