# booking-manager/2.0.11/core/any/emails_tpl/plain-text-tpl.php

Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar, version 2.0.11. 38 lines.

- Page: https://pluginprobe.com/plugins/booking-manager/2.0.11/code/core/any/emails_tpl/plain-text-tpl.php
- Raw: https://pluginprobe.com/plugins/booking-manager/2.0.11/raw/core/any/emails_tpl/plain-text-tpl.php
- Modified: 2019-02-16T10:11:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/booking-manager/2.0.11/code/core/any/emails_tpl/plain-text-tpl.php#L10-L20`.

```php
<?php  /**
 * @version 1.0
 * @package: Emails
 * @category: Templates
 * @author wpdevelop
 *
 * @web-site https://oplugins.com/
 * @email info@oplugins.com 
 * 
 * @modified 2015-06-16
 */

if ( ! defined( 'ABSPATH' ) ) exit;                                             // Exit if accessed directly


/**
 * get email template
 * 
 * @param array $fields_values
 */
function wpbm_email_template_plain_text( $fields_values ) {
    
    ob_start();

    if ( ! empty($fields_values['header_content'] ) ) {
        
        echo wp_kses_post( wptexturize( $fields_values['header_content'] ) ) . "\n\n";  //Header
    }
    
    echo ( wp_kses_post( wptexturize( $fields_values['content'] ) ) );          //Content

    if ( ! empty( $fields_values['footer_content'] ) ) {
        
        echo "\n\n" .  wp_kses_post( wptexturize( $fields_values['footer_content'] ) ); //Footer 
    }
    return ob_get_clean();                                                      // Return this email content
}

```
