acf/helpers/get_path
The Advanced Custom Fields: Leaflet Field acf helpers get path hook.
Description
apply_filters( 'acf/helpers/get_path', $file );
Parameters (1)
- 0. $file
- The file.
Usage
- To run the hook, copy the example below.
- $file = apply_filters( 'acf/helpers/get_path', $file );
- if ( !empty( $file ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the acf/helpers/get_path callback
- function filter_acf_helpers_get_path( $file ) {
- // make filter magic happen here...
- return $file;
- };
- // add the filter
- add_filter( 'acf/helpers/get_path', 'filter_acf_helpers_get_path', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'acf/helpers/get_path', 'filter_acf_helpers_get_path', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /leaflet_field-v5.php
- 'path' => apply_filters( 'acf/helpers/get_path', __FILE__ ),
- /leaflet_field-v4.php
- 'path' => apply_filters( 'acf/helpers/get_path', __FILE__ ),