gdmaq_mailer_phpmailer_intercept_priority

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!

The plugin intercepts wp_mail function at the point of PHPMailer initialization. The filter ‘gdmaq_mailer_phpmailer_intercept_priority’ changes the priority of that operation.

This filter provides 1 argument.

Arguments

  • $priority: The higher the value, the later it is executed. Default: 100000000.

Example

Change the priority.

add_filter('gdmaq_mailer_phpmailer_intercept_priority', 'custom__gdmaq_mailer_phpmailer_intercept_priority', 10, 1);
function custom__gdmaq_mailer_phpmailer_intercept_priority($priority) {
  $priority = 30000000;

  return $priority;
}

 

0
0
247
Rate this reference

You are not allowed to rate this post.

Leave a Comment