Hot answers tagged

3

First of all, don't reInvent the wheel, it's a wastage of time, money - everything. If you want to stick with the WordPress' way, better be with a Custom Post Type. Create a custom post type for storing emails in its postmeta. Make a form, and save the values to the CPT's postmeta Make a Menu Page and do use the Settings API and make your email template ...


2

There's a great article explaining how to hook into 2 filters for this at http://www.sourcexpress.com/customize-wordpress-comment-notification-emails/ To send your notifications to a particular user and not the site admin, try this for a user with ID 123: function se_comment_moderation_recipients( $emails, $comment_id ) { $comment = get_comment( ...


2

Im not aware of any hook that could change only comment notification recipient.. You would probably need to overwrite some kind of core function but here's a small workaround you could use: 1. Disable the email feature from WordPress comments settings (unless you want to get notified too) 2. Send it manually using comment_post action hook, just add this ...


2

The default email content type is text/plain which does not allow using HTML. Add this to your functions.php file: // use HTML instead of plain text add_filter( 'wp_mail_content_type', 'my_awesome_mail_content_type' ); function my_awesome_mail_content_type() { return 'text/html'; } But be warned, different email clients has very different support ...


1

In addition to my above comment that says it's off-topic, I'm just giving a quick answer. This you can set easily via WooCommerce settings. Go to WooCommerce » Settings and then click on Emails tab. Then click on right gear icon for any action(eg: New Order) And set multiple emails with comma separated in the Recepients setting


1

This is not really a WordPress bug at all, it is a phpmailer one in not allowing for custom headers... if you look at class-phpmailer.php: public function getMailMIME() { $result = ''; $ismultipart = true; switch ($this->message_type) { case 'inline': $result .= $this->headerLine('Content-Type', 'multipart/related;'); ...



Only top voted, non community-wiki answers of a minimum length are eligible