Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'wp_mail', function( $args ){
- if( class_exists( 'WP_Papertrail_API' ) ){
- WP_Papertrail_API::log(
- [
- 'to' => $args[ 'to' ],
- 'subject' => $args[ 'subject' ]
- ]
- , 'wpmail' );
- }
- return $args;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement