_translations = $translations; } public function __construct( $message, array $recipients, $subject ) { parent::__construct( $message, $recipients ); $this->_subject = $subject; } public function send() { $this->_parse_text(); return wp_mail( $this->_recipients, $this->_subject, $this->_message ); } private function _parse_text() { $this->_message = strtr( $this->_message, $this->_translations ); $this->_subject = strtr( $this->_subject, $this->_translations ); } }