ACF_Local_JSON::get_load_paths
Gets the path(s) to load JSON from.
Method of the class: ACF_Local_JSON{}
Hooks from the method
Returns
Array.
Usage
$ACF_Local_JSON = new ACF_Local_JSON(); $ACF_Local_JSON->get_load_paths();
Changelog
| Since 6.2 | Introduced. |
ACF_Local_JSON::get_load_paths() ACF Local JSON::get load paths code ACF 6.8.8
public function get_load_paths() {
$paths = (array) acf_get_setting( 'load_json' );
/**
* Filters the path(s) used to load JSON from.
*
* @since 6.2
*
* @param array $paths An array of potential paths to load JSON from.
* @return array
*/
return (array) apply_filters( 'acf/json/load_paths', $paths );
}