gpml_supported_acf_field_types

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Add support for a custom ACF field type.
  5. Since

Description

Filter which Advanced Custom Fields field types are supported by GP Media Library.

Usage

add_filter( 'gpml_supported_acf_field_types', 'my_custom_function' );

Parameters

  • supported_field_types array

    An array of supported ACF field types.

Examples

Add support for a custom ACF field type.

<?php
/**
 * Gravity Perks // Media Library // Add Support For a Custom ACF Field Type
 * https://gravitywiz.com/documentation/gravity-forms-media-library/
 */
add_filter( 'gpml_supported_acf_field_types', function( $supported_field_types ) {
	$supported_field_types[] = 'my_custom_acf_field_type';
	return $supported_field_types;
} );

Since

This filter is available since Gravity Forms Media Library 1.2.21.