class-tp-dev-mail.php
function send_to( $mail ) {
		$mail['subject'] .= ' [' . $mail['to'] . ']';

		if( 'staging' == WP_ENV )
			$mail['to'] = get_option( 'admin_email' );
		else if( defined( 'TP_DEV_MAIL' ) )
			$mail['to'] = TP_DEV_MAIL;
		else
			$mail['to'] = '';

		return $mail;
	}
function send_to( $mail ) {
		$mail['subject'] .= ' [' . $mail['to'] . ']';

		if( 'staging' == WP_ENV )
			$mail['to'] = get_option( 'admin_email' );
		else if( defined( 'TP_DEV_MAIL' ) )
			$mail['to'] = TP_DEV_MAIL;
		else
			$mail['to'] = '';

		return $mail;
	}
function send_to ( $ mail ) { $ mail [ 'subject' ] .= ' [' . $ mail [ 'to' ] . ']' ; if ( 'staging' == WP_ENV ) $ mail [ 'to' ] = get_option ( 'admin_email' ) ; else if ( defined ( 'TP_DEV_MAIL' ) ) $ mail [ 'to' ] = TP_DEV_MAIL ; else $ mail [ 'to' ] = '' ; return $ mail ; }
Don't send e-mails in development and staging environments
Don t send e - mails in development and staging environments