Skip to content

Instantly share code, notes, and snippets.

@moneal
Created July 29, 2015 17:48
Show Gist options
  • Save moneal/bd0b648ea46be7224107 to your computer and use it in GitHub Desktop.
Save moneal/bd0b648ea46be7224107 to your computer and use it in GitHub Desktop.
Add mandrill subaccount to wordpress
<?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