// Handle booking via AJAX add_action('wp_ajax_rbm_book_table', 'rbm_handle_booking'); add_action('wp_ajax_nopriv_rbm_book_table', 'rbm_handle_booking'); function rbm_handle_booking() { $date = sanitize_text_field($_POST['booking-date']); $time = sanitize_text_field($_POST['booking-time']); $party_size = intval($_POST['party-size']); // Check availability and book (logic to be added) $response = [ 'success' => true, 'message' => 'Booking successful!', ]; wp_send_json($response); } // Enqueue custom styles and scripts add_action('wp_enqueue_scripts', 'rbm_enqueue_frontend_assets'); add_action('admin_enqueue_scripts', 'rbm_enqueue_admin_assets'); function rbm_enqueue_frontend_assets() { wp_enqueue_style( 'rbm-booking-styles', plugin_dir_url(__FILE__) . 'assets/css/booking-styles.css' ); wp_enqueue_script( 'rbm-booking-scripts', plugin_dir_url(__FILE__) . 'assets/js/booking-scripts.js', ['jquery'], // Dependency on jQuery null, true ); wp_localize_script('rbm-booking-scripts', 'ajax_url', admin_url('admin-ajax.php')); } function rbm_enqueue_admin_assets() { wp_enqueue_style( 'rbm-admin-styles', plugin_dir_url(__FILE__) . 'assets/css/booking-styles.css' ); }{"id":142,"date":"2015-11-14T16:59:22","date_gmt":"2015-11-14T16:59:22","guid":{"rendered":"https:\/\/6.swingerscloud.com\/?post_type=avada_portfolio&p=142"},"modified":"2020-03-09T17:13:24","modified_gmt":"2020-03-09T17:13:24","slug":"fashion","status":"publish","type":"avada_portfolio","link":"https:\/\/6.swingerscloud.com\/portfolio-items\/fashion\/","title":{"rendered":"FASHION"},"content":{"rendered":"

YOU DON’T TAKE A PHOTOGRAPH, YOU MAKE IT<\/h3>\n<\/div>

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.<\/p>\n<\/div>

<\/div><\/div><\/div>
<\/div>
<\/div>
<\/div>
<\/div><\/div><\/div>
<\/a><\/span><\/div><\/div>
<\/div><\/div><\/div>
<\/a><\/span><\/div><\/div>
<\/div><\/div><\/div>
<\/a><\/span><\/div><\/div>
<\/div><\/div><\/div>
<\/a><\/span><\/div><\/div>
<\/div><\/div><\/div>
<\/a><\/span><\/div><\/div>
<\/div><\/div><\/div><\/div><\/div>
<\/div><\/div><\/div>