This plugin will import demo contents for the active theme which are configured with this plugin.
此插件将导入使用此插件配置的活动主题的演示内容。
By default the plugin will fetch the configuration files stored on our server.
默认情况下,插件将获取存储在我们服务器上的配置文件。
If you want to configure your own theme with the plugin, you just need to point to your config.json file and pass it to the filter
如果要使用插件配置自己的主题,则只需指向config.json文件并将其传递给过滤器
adi_git_config_location
adi_git_config_location strong> p>Example:
示例: p>
If your URL to config.json is ‘https://example.com/theme-demos/config.json’
如果您指向config.json的URL是“ https://example.com/theme-demos/config.json” p>
You will have to pass this to the filter ‘adi_git_config_location’ like
您必须将其传递给过滤器“ adi_git_config_location”,例如 p>
add_filter('adi_git_config_location', 'git_url_config' );
add_filter('adi_git_config_location','git_url_config');
function git_url_config(){
函数git_url_config(){
$git_url = 'https://example.com/theme-demos/config.json';
$ git_url ='https://example.com/theme-demos/config.json';
return $git_url;
返回$ git_url;
}
}
pre>
Support
支持 p>