內容簡介
這個外掛會為現行主題匯入與此外掛相容的示範內容。預設下外掛會從我們的伺服器取得設定檔案。
若您想要使用外掛設定自己的主題,只需指向您的 config.json 檔案並將它傳遞給篩選器
adi_config_location
範例:
如果指向您的 config.json 的網址為 ‘https://example.com/theme-demos/config.json’
您將需要將其傳遞給篩選器 ‘adi_config_location’,例如
add_filter('adi_config_location', 'my_url_config' );
function my_url_config(){
$my_url = 'https://example.com/theme-demos/config.json';
return $my_url;
}
支援
外掛標籤
開發者團隊
原文外掛簡介
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
adi_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 ‘adi_config_location’ like
add_filter('adi_config_location', 'my_url_config' );
function my_url_config(){
$my_url = 'https://example.com/theme-demos/config.json';
return $my_url;
}
Support
