Disable Pending Listing email
Hi,
How can I disable this email found in includes/core/processes/class-listing-process-emails.php:
---------------------------
/**
* Sends email to user about his new pending listing.
*
* Does nothing actually, just adds ability to send such notification.
*
* @param WP_Post $post Current listing object.
*/
public function notify_user_pending_listing( $post ) {
if ( ! $this->listing->options->get( "notify_user_pending_{$this->listing->get_type()}" ) ) {
return;
}
$recipient = get_user_by( 'id', $post->post_author );
$permalink = html_link( get_permalink( $post ), $post->post_title );
$message = html( 'p', sprintf( __( 'Hello %s,', APP_TD ), $recipient->display_name ) );
$message .= html( 'p', sprintf( __( 'Your "%s" listing has been received and will not appear live on our site until it has been approved.', APP_TD ), $permalink ) );
$blogname = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES );
$subject = sprintf( __( '[%1$s] Listing Pending: "%2$s"', APP_TD ), $blogname, $post->post_title );
$this->send( 'notify_user_pending_listing', array(
'to' => $recipient->user_email,
'subject' => wp_specialchars_decode( $subject ),
'message' => $message,
'listing' => $post,
) );
}
---------------------------