gmb_gmb_include_view_file

Filter file path for gmb_include_view.

Description

apply_filters( 'gmb_gmb_include_view_file', (string) $file, (bool) $full ); 

Parameters (2)

0. $file (string)
File path -- should be a full absolute path
1. $full (bool)
If this function is using full file path mode or not

Usage

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

Defined (1)

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

/vendor/wordimpress/maps-builder-core/includes/misc-functions.php  
  1. $file = apply_filters( 'gmb_gmb_include_view_file', $file, $full );