內容簡介
這款外掛可以為啟用的佈景主題匯入設定好的示範內容。默認情況下,此外掛會從我們的伺服器上取得儲存的配置檔案。
如果您想使用此外掛設定自己的佈景主題,您只需要將您的 config.json 檔案定位指向外掛,並通過篩選器 cdi_git_config_location 傳遞即可。
例如,若您的 config.json URL 是 'https://example.com/theme-demos/config.json',則需要像這樣通過篩選器 'cdi_git_config_location':
add_filter('cdi_git_config_location', 'git_url_config');
function git_url_config(){
$git_url = 'https://example.com/theme-demos/config.json';
return $git_url;
}
[支援](https://centuryplugin.com/support)
外掛標籤
開發者團隊
原文外掛簡介
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
cdi_git_config_location
Example:
If your URL to config.json is ‘https://example.com/theme-demos/config.json’
You will have to pass this to the filter ‘cdi_git_config_location’ like
add_filter('cdi_git_config_location', 'git_url_config' );
function git_url_config(){
$git_url = 'https://example.com/theme-demos/config.json';
return $git_url;
}
[Support] ( https://centuryplugin.com/support )
