Filter Supported Field Types


Filename: gpml-supported-field-types.php

 * Gravity Perks // GP Media Library // Filter Supported Field Types
add_filter( 'gpml_supported_field_types', function( $supported_field_types ) {

	$supported_field_types[] = 'example_field_type';

	return $supported_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.