[WordPress] 外掛分享: Century Demo Importer

首頁外掛目錄 › Century Demo Importer
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
尚無評分
2007 天前
最後更新
問題解決
WordPress 4.7.0+ PHP 5.6+ v1.0.0 上架:2020-10-09

內容簡介

這款外掛可以為啟用的佈景主題匯入設定好的示範內容。默認情況下,此外掛會從我們的伺服器上取得儲存的配置檔案。
如果您想使用此外掛設定自己的佈景主題,您只需要將您的 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)

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Century Demo Importer」→ 直接安裝(推薦)

原文外掛簡介

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 )

延伸相關外掛

文章
Filter
Apply Filters
Mastodon