Hi,
Exactly the same way you modify any other parameter:
public function addSubaccount($message) {
$subaccount_id = getSubaccount();
$message['subaccount'] = $subaccount_id;
return $message;
}
add_filter('mandrill_payload', 'addSubaccount');
Can this be done inside the settings in the general tags area?
No, sorry. It can’t be done through the settings yet.
Where in that function do you place the sub account’s ID?… let’s say it’s abc123
@doverlord MC_Will’s reply above has all the info you need.
https://wordpress.org/support/topic/wpmandrill-subbacount?replies=5#post-5205788
function addSubaccount($message) {
$subaccount_id = getSubaccount();
$message['subaccount'] = 'abc123';
return $message;
}
add_filter('mandrill_payload', 'addSubaccount');