plugin_path . 'includes/models/methods-api.php'; $method = new Methods(); include $controller->plugin_path . 'includes/translations/translations.php'; $txt = new Translation; $room_id = sanitize_text_field($_POST['room_id']); $checkin_date = sanitize_text_field($_POST['checkin_date']); $checkout_date = sanitize_text_field($_POST['checkout_date']); $checkin_timestamp = strtotime($checkin_date); $checkout_timestamp = strtotime($checkout_date); $room_name = $method->has_get_room_name($room_id); $price = $method->has_get_room_price($room_id, $checkin_timestamp, $checkout_timestamp); ?>