Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

This filter controls the wp_mail sending process. To pause the regular wp_mail sending, this filter has to return true. This filter is used by the plugin pause option available from the plugin Settings -> Pause panel. This filter doesn’t stop the process of adding emails into the queue.

This filter provides 1 argument.

Arguments

  • $pause: Return true to pause the wp_mail sending. Default: false.

Example

Pause the wp_mail sending.

add_filter('gdmaq_email_paused', 'custom__gdmaq_email_paused', 10, 1);
function custom__gdmaq_email_paused($pause) {
  $pause = true;

  return $pause;
}

 

0
0
158
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply