acf/fields/google_map/api

The Advanced Custom Fields acf fields google map api hook.

Description

apply_filters( 'acf/fields/google_map/api', (unknown) $api ); 

Parameters (1)

0. $api (unknown)
The api.

Usage

To run the hook, copy the example below.
  1. $api = apply_filters( 'acf/fields/google_map/api', $api ); 
  2.  
  3. if ( !empty( $api ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the acf/fields/google_map/api callback 
  2. function filter_acf_fields_google_map_api( $api ) { 
  3. // make filter magic happen here... 
  4. return $api
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'acf/fields/google_map/api', 'filter_acf_fields_google_map_api', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'acf/fields/google_map/api', 'filter_acf_fields_google_map_api', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/core/fields/google-map.php  
  1. $api = apply_filters('acf/fields/google_map/api', $api);