Adding CC to contact form plugin
From that code snippet, it looks like you're needing nested arrays. Try setting your $email-&gt;cc property like this.

$email-&gt;cc = array(
    array('name' =&gt; 'Your Name', 'email' =&gt; 'name@example.com')
);


The code snippet is iterating over $email-&gt;cc as $cc as the first array, then going into cc['name'] and cc['email'] as a nested array.