Title: Mailroad Switch
Author: MARSWorks Inc.
Published: <strong>Hunyo 10, 2021</strong>
Last modified: Hunyo 10, 2021

---

Maghanap ng mga plugin

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

Ang plugin na ito ay **hindi pa nasusubukan sa pinakabagong 3 major release ng WordPress**.
Maaaring hindi na ito minamantine o sinusuportahan at maaaring may mga isyu sa compatibility
kapag ginamit sa mas bagong bersyon ng WordPress.

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

# Mailroad Switch

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

[I-download](https://downloads.wordpress.org/plugin/mailroad-switch.1.0.zip)

 * [Mga Detalye](https://tl.wordpress.org/plugins/mailroad-switch/#description)
 * [Mga Review](https://tl.wordpress.org/plugins/mailroad-switch/#reviews)
 *  [Pag-install](https://tl.wordpress.org/plugins/mailroad-switch/#installation)
 * [Development](https://tl.wordpress.org/plugins/mailroad-switch/#developers)

 [Suporta](https://wordpress.org/support/plugin/mailroad-switch/)

## Deskripsyon

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.

## Mga Screenshot

 * [[
 * New admin email options

## Pag-install

 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’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’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.

## Mga Review

Wala pang reviews para sa plugin na ito.

## Mga Contributor at Developer

Ang “Mailroad Switch” ay open source software. Ang mga sumusunod na tao ay nag-ambag
sa plugin na ito.

Mga Contributor

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

[Isalin ang “Mailroad Switch” sa iyong wika.](https://translate.wordpress.org/projects/wp-plugins/mailroad-switch)

### Interesado sa development?

[Tingnan ang code](https://plugins.trac.wordpress.org/browser/mailroad-switch/),
i-check ang [SVN repository](https://plugins.svn.wordpress.org/mailroad-switch/),
o mag-subscribe sa [development log](https://plugins.trac.wordpress.org/log/mailroad-switch/)
sa pamamagitan ng [RSS](https://plugins.trac.wordpress.org/log/mailroad-switch/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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.

## Meta

 *  Bersyon **1.0**
 *  Huling na-update **5 taon ang nakalipas**
 *  Mga aktibong installation **10+**
 *  Bersyon ng WordPress ** 5.2 o mas bago **
 *  Sinubukan hanggang **5.7.15**
 *  Bersyon ng PHP ** 7.4 o mas bago **
 *  Wika
 * [English (US)](https://wordpress.org/plugins/mailroad-switch/)
 * Mga Tag
 * [admin](https://tl.wordpress.org/plugins/tags/admin/)[email](https://tl.wordpress.org/plugins/tags/email/)
   [emails](https://tl.wordpress.org/plugins/tags/emails/)[separate](https://tl.wordpress.org/plugins/tags/separate/)
 *  [Advanced View](https://tl.wordpress.org/plugins/mailroad-switch/advanced/)

## Mga Rating

No reviews have been submitted yet.

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

[Tingnan lahat ng review](https://wordpress.org/support/plugin/mailroad-switch/reviews/)

## Mga Contributor

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

## Suporta

May gusto kang sabihin? Kailangan ng tulong?

 [Tingnan ang support forum](https://wordpress.org/support/plugin/mailroad-switch/)