Add Number as a Supported Field Type


Filename: gpi-add-support-for-field-type.php

 * Gravity Perks // Inventory // Add Number as a Supported Field Type
add_filter( 'gpi_supported_field_types', function( $field_types ) {
	// Update "number" to desired field type.
	$field_types['number'] = true;

	return $field_types;
} );

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.