Created
July 29, 2015 17:48
-
-
Save moneal/bd0b648ea46be7224107 to your computer and use it in GitHub Desktop.
Add mandrill subaccount to wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function PREFIX_add_mandrill_subaccount( $message ) { | |
//$subaccount_id = get_option('mandrill_subaccount'); | |
$subaccount_id = 'SUB ACCOUNT ID'; | |
if ( $subaccount_id ) { | |
$message['subaccount'] = $subaccount_id; | |
} | |
return $message; | |
} | |
add_filter( 'mandrill_payload', 'PREFIX_add_mandrill_subaccount' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment