emails.php
I need to add text (not change language files) inside of
wp-content/vantage/includes/emails.php
I could not figure out how to enter plain text into emails.php.
I'd like to say "If you have any questions, please email us at
email@email.com" (and I'd like to add a signature block).
1. Any time I tried a <div> to enter plain text, the site would not load. Any ideas ?
2. Also, how can I remove the
noreply@site.com email?
============
I have two emails I want to tweak:
a. [Simply Basel] Receipt for your order
Here is the PHP (from emails.php). How/where can I add a line of regular text:
$table = new APP_Order_Summary_Table( $order );
ob_start();
$table->show();
$table_output = ob_get_clean();
$content = '';
$content .= html( 'p', sprintf( __( 'Hello %s,', APP_TD ), $recipient->display_name ) );
$content .= html( 'p', __( 'This email confirms that you have purchased the following listing:', APP_TD ) );
$content .= $item;
$content .= html( 'p', __( 'Order Summary:', APP_TD ) );
$content .= $table_output;
$subject = sprintf( __( '[%s] Receipt for your order', APP_TD ), get_bloginfo( 'name' ) );
va_send_email( $recipient->user_email, $subject, $content );
}
/--------------------------------------/
b. [Simply Basel] Listing Approved: "Test Listing"
Here is the PHP (from emails.php). How/where can I add a line of regular text?:
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 );
}
Thank you !
Matt