Title: Mailroad Switch
Author: MARSWorks Inc.
Published: <strong>Òkúdù 10, 2021</strong>
Last modified: Òkúdù 10, 2021

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/mailroad-switch/assets/banner-772x250.png?rev=2545859)

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://ps.w.org/mailroad-switch/assets/icon.svg?rev=2545859)

# Mailroad Switch

 Láti ọwọ́ [MARSWorks Inc.](https://profiles.wordpress.org/marsworks/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/mailroad-switch.1.0.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/mailroad-switch/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/mailroad-switch/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/mailroad-switch/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/mailroad-switch/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/mailroad-switch/)

## Àpèjúwe

This plugin allows you to set multiple admin email addresses. This means that you
can finally send all of those New User emails to go to HR, and send those WP Error
and Automatic Update emails to IT.

## Àwọn àwòrán ìbòjú

[⌊New admin email options⌉⌊New admin email options⌉[

New admin email options

## Ìgbéwọlẹ̀

 1. Upload `mailroad-switch.zip` through the ‘Add Plugins’ screen in WordPress.
 2. Activate the plugin in WordPress.
 3. Navigate to Settings > General to input your new email addresses.

## FAQ

### What Plugins are Supported?

Currently, the only third-party plugin which is supported is ‘Enable jQuery Migrate
Helper’

We did this because this plugin is used on many sites since the release of WordPress
5.2. Enable jQuery Migrate Helper comes with weekly emails along with emails regarding
automatic downgrades of your siteÌtumọ̀ Yorùbá: ’s jQuery version.

You will be able to set an email recipient for the emails from Enable jQuery Migrate
Helper. This option will only show if you have the Enable jQuery Migrate Helper 
plugin in your WordPress plugins directory.

### How do I retrieve a value to use in my code?

You are able to use the static method `get_email_recipient`

    ```
    $address = \Mailroad_Switch\Includes\Settings::get_email_recipient( 'errors' );
    ```

Default valid values passed to the method are:
 + `updates` + `errors` + `users`
+ `jquery_migrate`

If the email type does not exist or the option is not set for it, it will fallback
to the admin email address you have set for your WordPress site.

### I have a plugin that is sending me emails, but I do not see an option to change the email recipient. What do I do?

You can open a question in the support forum to the right, and request that we add
support for a third-party plugin.

### I donÌtumọ̀ Yorùbá: ’t have time to wait for you to add support for more plugins! I need to do it right now! *For Developers Only*

You are able to use the filter `mailroad_switch_available_hooks`

    ```
    add_filter( "mailroad_switch_available_hooks", function( $types ){
       if( ! array_key_exists( "my_unique_type", $types ) ){
          $types["my_unique_type"] = [
             "label" => "My Unique Type",
             "description" => "Emails coming from my custom plugin or theme",
             "class" => "\My\Class\Handler"
          ];
       }
       return $types;
    } );
    ```

The above code snippet will add a new admin setting below the other fields. The 
construct of your `\My\Class\Handler` should have one parameter which will be the
email address retrieved from the setting. You can then implement any WordPress or
Plugin or Theme action and filter hooks in your class to change email recipients.

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“Mailroad Switch” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

 *   [ MARSWorks Inc. ](https://profiles.wordpress.org/marsworks/)

[Túmọ̀ “Mailroad Switch” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/mailroad-switch)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/mailroad-switch/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/mailroad-switch/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/mailroad-switch/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/mailroad-switch/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.0

 * Initial launch of plugin
 * Includes support for WordPress Core email notifications for User notices, WP 
   Error notices, and Automatic Update notices.
 * Includes support for Enable jQuery Migrate Helper plugin email notices.

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.0**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 5 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 5.2 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **5.7.15**
 *  Ẹ̀yà PHP ** 7.4 tàbí ju bẹ́ẹ̀ lọ **
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/mailroad-switch/)
 * Àwọn àmì
 * [admin](https://yor.wordpress.org/plugins/tags/admin/)[email](https://yor.wordpress.org/plugins/tags/email/)
   [emails](https://yor.wordpress.org/plugins/tags/emails/)[separate](https://yor.wordpress.org/plugins/tags/separate/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/mailroad-switch/advanced/)

## Àwọn ìbò

Kò sí ìwádìí tí a tíì fi ránṣẹ́.

[Your review](https://wordpress.org/support/plugin/mailroad-switch/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/mailroad-switch/reviews/)

## Àwọn Olùkópa

 *   [ MARSWorks Inc. ](https://profiles.wordpress.org/marsworks/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/mailroad-switch/)