| 开发者 | anybookapp |
|---|---|
| 更新时间 | 2026年11月11日 04:41 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[anybook ...] can be turned into the block, keeping its choices.
Shortcode
For the classic editor and page builders, [anybook] shows the same widget with the same choices:
show="all", show="unit", show="appointments" or show="service": what to show (all units if left out).unit="belle": one unit (its code in Anybook).service="cut": one service; services="yes" also means appointments.accent="#0b6e4f" and text="#1f2933": colors.guest_links="yes": this widget opens guests' email links when a page has several.button_text="Book now", details_heading="About you", dates_text="Pick your dates": wording.[anybook show="overview"], with these choices:
weeks="12": how many weeks it shows, 2 to 26 (12 if left out).prices="yes": show prices.units="belle,kayak": only these units (their codes in Anybook, separated by commas); all units if left out.rows="people" service="...": one row per team member for that one service (its id or code in Anybook); otherwise one row per service.anybook_page_has_widget filter.
From US$15 a month per site, by how many bookings it takes: US$15 for up to 100 a month, US$39 for up to 500 and US$79 for up to 3,000. Every plan has every feature. For a limited time, the opening special is US$10 a month for your first 6 months, on any plan. You pay monthly and can cancel anytime. Stripe's normal card fees apply to card payments. The plugin itself is free.
No. The first month is paid when you sign up, at the opening special of US$10, and you can cancel anytime.
No. You pay the monthly price, and Stripe's normal card fees. Nothing is added to your guests' bookings, and the money goes straight to your own Stripe account.
Anything you rent out or run, by the night, the day, the hour, the seat or the item. For example: boats, houseboats and cabins; kayaks, bikes and equipment; tours, charters and classes; and appointments with your team at salons and spas. One account can mix them.
No. Booking, paying, signing the agreement, checking in and managing a booking all happen in the widget on your website. Guests' email links come back to your website too.
Yes, from a WP Booking System export file. Anybook brings your bookings with you: it matches your calendars to your units, checks the numbers against the original and lists anything it couldn't bring across. For now this is done on request, not as a self-service upload. Ask the help assistant in Anybook to start it. Your old system can keep running until you are ready to switch.
The fastest help is the help assistant inside Anybook: click the round ? button in the top bar and ask your question. The Anybook user guide (open it from the help window in Anybook) covers every feature. You can also post on the support forum here on WordPress.org: it is watched, and a reply may take a day. There is no phone or email support.
Open Anybook in the admin menu and click Connect to Anybook. Sign in to Anybook as your business's Owner, check that the address shown is your website, and click Allow. You come back to WordPress, which says "Connected to Anybook". Anybook adds your website to its allowed websites for you. No keys or passwords are copied. If you are not the Owner, enter your business code under "Or enter your business code" and click Save code (Anybook shows the code under Settings, Online booking). That connects the plugin only: the Owner must then add this website to allowed websites in Anybook (Settings, Online booking). Anybook counts a website with "www" and without "www" as two different addresses, so add the one your site uses.
Select the Anybook booking block. In its sidebar, under What to show, choose All units, One unit, Appointments or One service. For One unit, pick the unit from the list, which comes from your Anybook account. If the list cannot load, press Try again, or type the unit's code as Anybook shows it. For several units at once, choose Availability overview and tick the units you want under Units; with none ticked, all your units show. In a shortcode, use [anybook show="unit" unit="belle"], or for the overview [anybook show="overview" units="belle,kayak"].
A hex code is a color written as a # and 3 or 6 letters or digits (0 to 9, a to f), for example #0b6e4f or #fff. Set the colors for every widget on the plugin's settings page (Anybook in the admin menu, Widget colors: Main color and Text color). A block sets its own under Colors in its sidebar, and a shortcode with accent="#0b6e4f" and text="#1f2933". A block or shortcode color wins over the settings page.
If a value is not a color like that, the settings page does not save it: it says so and keeps the color saved before. In a block or shortcode a bad value is ignored, and the settings page color is used (or the widget's own, if there is none).
Your customer page is the page on your website where guests' email links open, so they can pay for, see or change their booking. Anybook calls it your customer page, and the plugin's settings page calls it your guest page. The Owner sets it, and it needs the Anybook booking block or the [anybook] shortcode on it.
The easiest way: tick Make a booking page for me ("Book online") and use it as the guest page before you click Connect to Anybook, then tick the guest page choice on Anybook before you click Allow. If your site has no guest page yet, the plugin's settings page shows Set your guest page: the Owner clicks it and ticks the same choice on Anybook. You can also type the page's address into Your customer page in Anybook (Settings, Online booking). The page must be on your own website, on the allowed websites list, and its address must start with https. Until it is set, guests' email links do not work.
Open Anybook in the admin menu: the Status list shows which of these is wrong.
No. It stores your business's public code and name, the booking site address, the booking page it made and your default colors.
Its settings are removed, on every site of a network. Your booking page stays (it is your page) and your Anybook account is not changed. Remove the website from allowed websites in Anybook if you no longer use it.
The settings page lists the lines your policy needs. Give them to whoever manages your site's security headers.
Every site of such a network has the same address (example.com) as far as browsers are concerned, so whatever your business allows for one site, it allows for all of them: another site of the network could show your booking widget and read what guests type in it. The settings page warns about this. Give your booking website its own domain or subdomain (a network that uses subdomains is fine).
The settings page accepts only https://site.anybookapp.com, and only from an administrator who may add scripts to the site (on a network, the super admin). On a local or development WordPress (environment type local or development) it also accepts localhost. For any other address, for example your own test install of Anybook, add define( 'ANYBOOK_SITE', 'https://your-address' ); to wp-config.php.
It ships with the plugin, in blocks/booking/. See Source code and build, above, for how build/booking/ is made from it.
package-lock.json ships with the plugin.[anybook] shortcode, the "Book online" page, privacy policy text, multisite uninstall.