<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>email &#8211; Snippets</title>
	<atom:link href="http://wp.djtedfunke.com/tag/email/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.djtedfunke.com</link>
	<description></description>
	<lastBuildDate>Tue, 06 Oct 2020 08:54:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>

<image>
	<url>http://wp.djtedfunke.com/wp-content/uploads/2018/12/cropped-front-end_developer-2-512-32x32.png</url>
	<title>email &#8211; Snippets</title>
	<link>http://wp.djtedfunke.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Woocommerce email</title>
		<link>http://wp.djtedfunke.com/woocommerce-email/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Sat, 29 Feb 2020 16:05:14 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Woocommerce]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=241</guid>

					<description><![CDATA[This script will allow you to send a custom email from anywhere within wordpress but using the woocommerce template so that your emails look the&#8230;]]></description>
										<content:encoded><![CDATA[
<p>This script will allow you to send a custom email from anywhere within wordpress but using the woocommerce template so that your emails look the same.<br><a href="https://gist.github.com/craigedmonds/b65c65e02fd40bd381bf023ffef2c80e">https://gist.github.com/craigedmonds/b65c65e02fd40bd381bf023ffef2c80e</a></p>



<pre class="wp-block-code"><code lang="php" class="language-php">function get_custom_email_html( $order, $heading = false, $mailer ) {

	$template = 'emails/my-custom-email-i-want-to-send.php';

	return wc_get_template_html( $template, array(
		'order'         => $order,
		'email_heading' => $heading,
		'sent_to_admin' => false,
		'plain_text'    => false,
		'email'         => $mailer
	) );

}

// load the mailer class
$mailer = WC()->mailer();

//format the email
$recipient = "someone@somewhere.com";
$subject = __("Hi! Here is a custom notification from us!", 'theme_name');
$content = get_custom_email_html( $order, $subject, $mailer );
$headers = "Content-Type: text/html\r\n";

//send the email through wordpress
$mailer->send( $recipient, $subject, $content, $headers );</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Disable mail notification</title>
		<link>http://wp.djtedfunke.com/disable-mail-notification/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Tue, 01 Jan 2019 20:09:53 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[email]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=62</guid>

					<description><![CDATA[Stop sending admin emails for WP update]]></description>
										<content:encoded><![CDATA[
<p>Stop sending admin emails for WP update</p>



<pre class="wp-block-code"><code>function wpb_stop_update_emails( $send, $type, $core_update, $result ) {
	if ( ! empty( $type ) &amp;&amp; $type == 'success' ) {
		return false;
	}
	return true;
}
add_filter( 'auto_core_update_send_email', 'wpb_stop_auto_update_emails', 10, 4 );</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
