WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
[resolved] Wpmandrill - subbacount (4 posts)

  1. franzbel
    Member
    Posted 6 months ago #

    Hello,

    I'd like to know how to use mandrill_payload filter to add a mandrill subaccount in the emails sent by wordpress through wpmandrill plugin.

    Thank your for your help !

    https://wordpress.org/plugins/wpmandrill/

  2. MC_Will
    Member
    Plugin Author

    Posted 6 months ago #

    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');
  3. alpha1beta
    Member
    Posted 4 months ago #

    Can this be done inside the settings in the general tags area?

  4. MC_Will
    Member
    Plugin Author

    Posted 3 months ago #

    No, sorry. It can't be done through the settings yet.

Reply

You must log in to post.

About this Plugin

About this Topic