protected function loadAcfJson()
    {
        $config = $this->getConfigPath() . '/acf-json';

        if (file_exists($config)) {
            add_filter('acf/settings/load_json', function ($paths) use ($config) {
                $paths[] = $config;
                return $paths;
            });
        }

        return $this;
    }
protected function loadAcfJson()
    {
        $config = $this->getConfigPath() . '/acf-json';

        if (file_exists($config)) {
            add_filter('acf/settings/load_json', function ($paths) use ($config) {
                $paths[] = $config;
                return $paths;
            });
        }

        return $this;
    }
protected function loadAcfJson ( ) { $ config = $ this -> getConfigPath ( ) . '/acf-json' ; if ( file_exists ( $ config ) ) { add_filter ( 'acf/settings/load_json' , function ( $ paths ) use ( $ config ) { $ paths [ ] = $ config ; return $ paths ; } ) ; } return $ this ; }
Load ACF JSON config if supplied.

@return \Tev\Plugin\Loader This, for chaining
Load ACF JSON config if supplied .