lib/mail/Mail.php
public function addGlobalCustomArgs($custom_args)
    {
        if (current($custom_args) instanceof CustomArg) {
            foreach ($custom_args as $custom_arg) {
                $this->addGlobalCustomArg($custom_arg);
            }
        } else {
            foreach ($custom_args as $key => $value) {
                $this->addGlobalCustomArg($key, $value);
            }
        }
    }
public function addGlobalCustomArgs($custom_args)
    {
        if (current($custom_args) instanceof CustomArg) {
            foreach ($custom_args as $custom_arg) {
                $this->addGlobalCustomArg($custom_arg);
            }
        } else {
            foreach ($custom_args as $key => $value) {
                $this->addGlobalCustomArg($key, $value);
            }
        }
    }
public function addGlobalCustomArgs ( $ custom_args ) { if ( current ( $ custom_args ) instanceof CustomArg ) { foreach ( $ custom_args as $ custom_arg ) { $ this -> addGlobalCustomArg ( $ custom_arg ) ; } } else { foreach ( $ custom_args as $ key => $ value ) { $ this -> addGlobalCustomArg ( $ key , $ value ) ; } } }
Adds multiple custom args to a Mail object

Note that custom args added to Personalization objects override
global custom args.

@param array|CustomArg[] $custom_args Array of CustomArg objects
or key/values
Adds multiple custom args to a Mail object