acf/get_info

The Advanced Custom Fields acf get info hook.

Description

apply_filters( 'acf/get_info', (string) $dir ); 

Parameters (1)

0. $dir (string) => 'dir'
The dir.

Usage

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

Defined (8)

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

/core/fields/wysiwyg.php  
  1. $plugins['code'] = apply_filters('acf/get_info', 'dir') . 'js/tinymce.code.min.js'; 
/core/controllers/upgrade.php  
  1. $plugin_version = apply_filters('acf/get_info', 'version'); 
/core/controllers/field_groups.php  
  1. $version = apply_filters('acf/get_info', 'version'); 
  1. $dir = apply_filters('acf/get_info', 'dir'); 
  1. $path = apply_filters('acf/get_info', 'path'); 
/core/controllers/field_group.php  
  1. $this->settings = apply_filters('acf/get_info', 'all'); 
/core/controllers/export.php  
  1. $path = apply_filters('acf/get_info', 'path'); 
/core/controllers/addons.php  
  1. $dir = apply_filters('acf/get_info', 'dir');