_base->_plugin)); case 'manifest': ob_start(); include(dirname(__FILE__) . '/../manifest.json'); return json_decode(ob_get_clean(), true); } return parent::_default($name); } /** * Obtain a path to an asset. * * @since 1.0.0 * * @access public * @param string $path Path to the asset folder. * @param string $file_name File name for the asset. * @return string Full path to the requested asset. */ public function asset_path($path, $file_name) { $manifest = $this->manifest; if (isset($manifest[$file_name])) { $file_name = $manifest[$file_name]; } return trailingslashit($this->assets_url . $path) . $file_name; } } }