@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-multipart-email/>
  a sioc:Post ;
  dc:title "Hooks" ;
  dcterms:identifier 152441 ;
  dc:modified "2026-10-25T12:20:57Z"^^xsd:dateTime ;
  dc:created "2026-10-25T12:20:57Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-multipart-email/hooks/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-multipart-email/\">LH Multipart Email</a></li></ul><h2 class=\"wp-block-heading\">Filters</h2><h3 class=\"wp-block-heading\"><code>lh_multipart_email_destroy_phpmailer</code></h3><p class=\"wp-block-paragraph\">Default <code>false</code>. When several emails are sent in one request, WordPress reuses its PHPMailer object, and the plain text part from one email would otherwise carry over to the next. By default the plugin just clears that plain text part. Return <code>true</code> to destroy the PHPMailer object instead, so WordPress builds a fresh one for the next email; if WP Mail SMTP is active, its mailer is recreated in its place. Before 1.15.0 this filter was named <code>lh-multipart-email_destroy-phpmailer</code>.</p><pre class=\"wp-block-code\"><code>add_filter( 'lh_multipart_email_destroy_phpmailer', '__return_true' );</code></pre><h3 class=\"wp-block-heading\"><code>lh_multipart_email_return_plugin_debugging_status</code></h3><p class=\"wp-block-paragraph\">Default <code>false</code>. Return <code>true</code> to write the plugin&#8217;s log lines to debug.log; <code>WP_DEBUG</code> must also be true.</p><h2 class=\"wp-block-heading\">Actions</h2><h3 class=\"wp-block-heading\"><code>lh_multipart_email_phpmailer_reinitialized</code></h3><p class=\"wp-block-paragraph\">Fires after the PHPMailer object has been cleared or destroyed between two emails sent in the same request, for code that needs to work with the mailer at that point. Before 1.15.0 this action was named <code>lh-multipart-email_phpmailer_reinitialized</code>.</p>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH Multipart EmailFilterslh_multipart_email_destroy_phpmailerDefault false. When several emails are sent in one request, WordPress reuses its PHPMailer object, and the plain text part from one email would otherwise carry over to the next. By default the plugin just clears that plain text part. Return true to destroy the PHPMailer object instead, so WordPress builds a fresh one for the next email; if WP Mail SMTP is active, its mailer is recreated in its place. Before 1.15.0 this filter was named lh-multipart-email_destroy-phpmailer.add_filter( 'lh_multipart_email_destroy_phpmailer', '__return_true' );lh_multipart_email_return_plugin_debugging_statusDefault false. Return true to write the plugin&#8217;s log lines to debug.log; WP_DEBUG must also be true.Actionslh_multipart_email_phpmailer_reinitializedFires after the PHPMailer object has been cleared or destroyed between two emails sent in the same request, for code that needs to work with the mailer at that point. Before 1.15.0 this action was named lh-multipart-email_phpmailer_reinitialized." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
