Title: Surbma | Booking.com Shortcode
Author: Surbma
Published: <strong>2015 年 4 月 3 日</strong>
Last modified: 2026 年 4 月 12 日

---

搜索插件

![](https://ps.w.org/surbma-bookingcom-shortcode/assets/banner-772x250.jpg?rev=2626314)

![](https://s.w.org/plugins/geopattern-icon/surbma-bookingcom-shortcode_e9eaec.svg)

# Surbma | Booking.com Shortcode

 作者：[Surbma](https://profiles.wordpress.org/surbma/)

[下载](https://downloads.wordpress.org/plugin/surbma-bookingcom-shortcode.2.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/surbma-bookingcom-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/surbma-bookingcom-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/surbma-bookingcom-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/surbma-bookingcom-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/surbma-bookingcom-shortcode/)

## 描述

A simple shortcode to include Booking.com search box into WordPress. This is a very
useful plugin if your user don’t have a permission to embed javascript in the content.

The shortcode: `[surbma-bookingcom param="ALL_THE_PARAMETERS"]`

Where param is the parameter, you can find in the Booking.com embed code. You need
to find the src field, where you have to copy all the parameters after the `https://
www.booking.com/general.html?` url.

You can find the parameters at the end of your Booking.com script’s url:

## 安装

 1. Upload `surbma-bookingcom-shortcode` folder to the `/wp-content/plugins/` directory
 2. Activate the Surbma | Booking.com Shortcode plugin through the ‘Plugins’ menu in
    WordPress
 3. That’s it. Now you can use the shortcode. 🙂

## 常见问题

### What is Booking.com?

Booking.com offers online accommodation booking. For more information, please visit
the official Booking.com website: [www.booking.com](https://www.booking.com/)

### Can I customize the look of the form?

No, you can’t.

### What does Surbma mean?

It is the reverse version of my last name. 😉

## 评价

此插件暂无评价。

## 贡献者及开发者

「Surbma | Booking.com Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Surbma ](https://profiles.wordpress.org/surbma/)
 *   [ CherryPick Studios ](https://profiles.wordpress.org/cherrypickstudios/)

「Surbma | Booking.com Shortcode」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/surbma-bookingcom-shortcode/contributors)
为本插件所做的贡献。

[帮助将「Surbma | Booking.com Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/surbma-bookingcom-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/surbma-bookingcom-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/surbma-bookingcom-shortcode/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/surbma-bookingcom-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/surbma-bookingcom-shortcode/)。

## 更新日志

#### 2.1.1

Release date: 2026-04-12

 * SECURITY – Shortcode `param` is stripped of HTML, the script URL is built safely,
   and `esc_url()` is used on output (addresses stored XSS reports for contributor-
   level shortcode use).

#### 2.1

Release date: 2024-01-01

FIX

 * Changed textdomain hook to init.
 * Security fix for shortcode: parameters are properly escaped.

OTHER

 * Code optimizations.

#### 2.0

Release date: 2020-02-10

 * TWEAK – Tested with WordPress 5.3 version.
 * TWEAK – Updated to use a new way to deploy it to wp.org repo.

#### 1.1.0

 * Changed shortcode name to surbma-bookingcom from booking_com. The old shortcode
   is still working, but it’s deprecated and it will be removed from the next version.

#### 1.0.3

 * Tested up to WordPress 4.9 version.

#### 1.0.2

 * Changed some texts, text domain and function names.

#### 1.0.1

 * Fix localization.
 * Prevent direct access to the plugin.

#### 1.0.0

 * Initial release.

## 商业插件

该插件免费，但提供额外的付费商业升级或支持服务。

## 额外信息

 *  版本 **2.1.1**
 *  最后更新：**2 月前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.1 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/surbma-bookingcom-shortcode/) 和
   [German](https://de.wordpress.org/plugins/surbma-bookingcom-shortcode/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/surbma-bookingcom-shortcode)
 * 标签
 * [booking.com](https://cn.wordpress.org/plugins/tags/booking-com/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/surbma-bookingcom-shortcode/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/surbma-bookingcom-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/surbma-bookingcom-shortcode/reviews/)

## 贡献者

 *   [ Surbma ](https://profiles.wordpress.org/surbma/)
 *   [ CherryPick Studios ](https://profiles.wordpress.org/cherrypickstudios/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/surbma-bookingcom-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://surbma.com/donate/)