// 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":110795,"date":"2021-12-01T13:57:55","date_gmt":"2021-12-01T13:57:55","guid":{"rendered":"https:\/\/6.swingerscloud.com\/?page_id=110795"},"modified":"2021-12-01T16:04:39","modified_gmt":"2021-12-01T16:04:39","slug":"test-av-moduler","status":"publish","type":"page","link":"https:\/\/6.swingerscloud.com\/test-av-moduler\/","title":{"rendered":"Test av moduler"},"content":{"rendered":"
\n

Swingers Cloud \u2013 Your guide to\u00a0public and hidden sex attractions<\/h1>\n<\/div>\n
\n

We offer a completely unique service for people looking for swingers clubs, strip clubs, resorts for exciting meetings and for escort service in the real world.<\/p>\n

If you are looking for party at swingers clubs, sex clubs, public sex locations or some other adult fun is this where you will find it!<\/p>\n<\/div>\n<\/div><\/div>