[WordPress] 外掛分享: Access Demo Importer

首頁外掛目錄 › Access Demo Importer
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10,000+
安裝啟用
尚無評分
1507 天前
最後更新
0%
問題解決
WordPress 4.7.0+ PHP 5.6+ v1.0.9 上架:2019-07-27

內容簡介

這個外掛會為現行主題匯入與此外掛相容的示範內容。預設下外掛會從我們的伺服器取得設定檔案。
若您想要使用外掛設定自己的主題,只需指向您的 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;
}

支援

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Access 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
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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon