function va_send_approved_notification( $post ) { $recipient = get_user_by( 'id', $post->post_author );
$content = '';
$content .= html( 'p', sprintf( __( 'Hello %s,', APP_TD ), $recipient->display_name ) );
$content .= html( 'p', sprintf( __( 'Your "%s" listing has been approved.', APP_TD ), html_link( get_permalink( $post ), $post->post_title ) ) );
$subject = sprintf( __( '[%s] Listing Approved: "%s"', APP_TD ), get_bloginfo( 'name' ), $post->post_title );
va_send_email( $recipient->user_email, $subject, $content );}
There are currently 1 users browsing this thread. (0 members and 1 guests)