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
26
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply