path = get_stylesheet_directory() . '/acf'; add_filter( 'acf/settings/load_json', array( $this, 'loadJson' ) ); add_filter( 'acf/settings/save_json', array( $this, 'saveJson' ) ); } /** Save JSON. * * @param mixed $path The path to save the JSON file. */ // phpcs:ignore public function saveJson( $path ) { return $this->path; } /** Load JSON. * * @param mixed $paths The paths to load the JSON file. */ // phpcs:ignore public function loadJson( $paths ) { return array( $this->path ); } } if ( function_exists( 'get_fields' ) ) { $acfInstance = new ACF(); }