[WordPress] 外掛分享: wpMandrill Multisite

首頁外掛目錄 › wpMandrill Multisite
WordPress 外掛 wpMandrill Multisite 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
3672 天前
最後更新
問題解決
WordPress 3.0+ v1.0.3 上架:2015-02-17

內容簡介

此外掛自動將 wpMandrill 的設定從主網站傳播至所有子網站,但仍允許每個子網站手動覆寫設定。

開始使用

前往「設定 -> Mandrill」並至少設定您的 API 金鑰、寄件者姓名和寄件者電子郵件。這樣就能啟用和連接您的 Mandrill 外掛。這是 wpMandrill Multisite 外掛運作所必需的。這些設定將自動傳播到沒有 Mandrill 設定的子網站。您也可以選擇手動為每個網站覆寫設定。

開發人員進階自訂

此外掛提供多個勾子(hook),允許開發人員修改預設的外掛行為。

wpmandrill_multisite_site_id

$site_id (int)。目前網站的 ID。

此過濾器(filter)允許您修改當前網站的 ID。除非網絡是多個網站網絡(multisite networks),否則通常是 1。

wpmandrill_multisite_propagation

$propagate (bool)。是否應傳播設定。

$blog_id (int)。當前的部落格 ID。允許構建自訂邏輯。

此過濾器允您指定 wpMandrill 的設定是否應傳播到子網站。使用 $blog_id,您可以構建自訂邏輯,僅停用某個部落格的傳播。或者,如果您忽略 $blog_id,您可以全域停用傳播。

wpmandrill_multisite_settings

$mandrill_settings (array)。將傳播的所有 wpMandrill 設定的陣列。

$blog_id (int)。當前的部落格 ID。允許構建自訂邏輯。

此過濾器允許您修改將傳播到子網站的 wpMandrill 設定。使用 $blog_id,您可以構建自訂邏輯,僅更改某個部落格的設定。

想法和錯誤報告

歡迎任何新模組的想法或用戶受益的其他附加功能。

如果您有新功能的想法,或想報告錯誤,歡迎在支援選項頁面進行回報,或者您可以在專案的 Github 存儲庫上進行回報:

https://github.com/tyxla/wpMandrill-multisite/

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「wpMandrill Multisite」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Automatically propagates the wpMandrill settings from the main site to all subsites, still allowing each subsite to manually override them.
Getting Started
Go to Settings -> Mandrill and setup at minimum your API key, FROM name and FROM email. This will have your Mandrill plugin enabled and connected. This is all that is necessary for the wpMandrill Multisite plugin to work. These settings will now be automatically be propagated to the subsites that have no Mandrill settings. You can then manually override them for each site, if you prefer.
Further customization for developers
The plugin offers several hooks that allow developers to modify the default plugin behavior.
wpmandrill_multisite_site_id
$site_id (int). The ID of the current site.
This filter allows you to modify the ID of the current site. Unless the network is a multi-network (a network of multisite networks), this will usually be 1.
wpmandrill_multisite_propagation
$propagate (bool). Whether the settings should be propagated.
$blog_id (int). The ID of the currently iterated blog. Allows custom logic to be built.
This filter allows you to specify whether the wpMandrill settings should be propagated to the subsites. Using the $blog_id you can build a custom logic to disable propagation only for a certain blog. Or if you ignore $blog_id, you can globally disable the propagation.
wpmandrill_multisite_settings
$mandrill_settings (array). An array of all wpMandrill settings that will be propagated.
$blog_id (int). The ID of the currently iterated blog. Allows custom logic to be built.
This filter allows you to modify the wpMandrill settings that will be propagated to the subsites. Using $blog_id, you can use custom logic to change the settings only for a certain blog.
Ideas and bug reports
Any ideas for new modules or any other additional functionality that users would benefit from are welcome.
If you have an idea for a new feature, or you want to report a bug, feel free to do it here in the Support tab, or you can do it at the Github repository of the project:
https://github.com/tyxla/wpMandrill-multisite/

延伸相關外掛

文章
Filter
Mastodon