# booking/11.0/includes/page-setup/templates/10.get_started__action.php

Booking Calendar, version 11.0. 74 lines.

- Page: https://pluginprobe.com/plugins/booking/11.0/code/includes/page-setup/templates/10.get_started__action.php
- Raw: https://pluginprobe.com/plugins/booking/11.0/raw/includes/page-setup/templates/10.get_started__action.php
- Modified: 2025-05-12T07:38:12+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/11.0/code/includes/page-setup/templates/10.get_started__action.php#L10-L20`.

```php
<?php /**
 * @version 1.0
 * @description Action  for  Template Setup pages
 * @category    Setup Action
 * @author wpdevelop
 *
 * @web-site http://oplugins.com/
 * @email info@oplugins.com
 *
 * @modified 2024-10-20
 */

if ( ! defined( 'ABSPATH' ) ) exit;                                             // Exit if accessed directly


// -------------------------------------------------------------------------------------------------------------
// == Action - Optional Settings ==
// -------------------------------------------------------------------------------------------------------------
/**
 * Template - Optional Settings
 *
 * 	Help Tips:
 *
 *		<script type="text/html" id="tmpl-template_name_a">
 * 			Escaped:  	 {{data.test_key}}
 * 			HTML:  		{{{data.test_key}}}
 * 			JS: 	  	<# if (true) { alert( 1 ); } #>
 * 		</script>
 *
 * 		var template__var = wp.template( 'template_name_a' );
 *
 * 		jQuery( '.content' ).html( template__var( { 'test_key' => '<strong>Data</strong>' } ) );
 *
 * @return void
 */


/**
 * Validate
 *
 * @param $post_data
 *
 * @return array
 */
function wpbc_template__get_started__action_validate_data( $post_data ){

	$escaped_data = array(
		//'booking_form_theme'           => get_bk_option( 'booking_form_theme' )            // ''
	);
	// -----------------------------------------------------------------------------------------------------------------
	//	$key = 'booking_form_theme';
	//	if ( ( isset( $post_data[ $key ] ) ) ) {
	//		$escaped_data[ $key ] = wpbc_clean_text_value( $post_data[ $key ] );
	//	}

	return $escaped_data;
}



/**
 *  Update
 *
 * @param $cleaned_data     array
 *
 * @return void
 */
function wpbc_setup__update__get_started( $cleaned_data ){

//	if ( isset( $cleaned_data['booking_form_theme'] ) ) {
//		update_bk_option( 'booking_form_theme', $cleaned_data['booking_form_theme'] );
//	}

}
```
