| 开发者 | baperrou |
|---|---|
| 更新时间 | 2026年10月24日 14:29 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
{first_name}, {product_name}, {booking_date}, {site_name}.do-it-simply-booking-follow-up folder to /wp-content/plugins/.No. WooCommerce Bookings (sold separately at WooCommerce.com) must be installed and active. If it is not found, the plugin shows an admin notice and does not load.
The plugin schedules a once-daily WP-Cron event that fires at 9:00 am in your site's timezone (as set under Settings → General). On activation it calculates the next upcoming 9:00 am and uses that as the first run time, so subsequent runs stay anchored to that hour. Each run looks for bookings that ended on the whole calendar day that is exactly your configured number of days ago — for example, setting 3 means bookings that ended 3 days ago (any time that day, 00:00–23:59 in the site timezone). The email is sent once per booking; a flag is stored on the booking to prevent duplicates.
Developers can change the send hour via a filter in a custom plugin or functions.php:
add_filter( 'dis_bfu_send_hour', fn() => 7 ); // run at 7 am instead
The filter value must be an integer between 0 and 23.
WP-Cron depends on site visits to trigger scheduled events. For reliable timing, set up a real server cron job to hit wp-cron.php on a schedule, for example:
0 6 * * * wget -q -O - https://example.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
Delete the _dis_bfu_sent post meta from the booking in the database (or via a custom snippet) and the next cron run will treat it as unsent — provided it still falls within the configured day window.
Make sure Enable Follow-Up Emails is checked and saved, and that the booking status you are testing with is ticked in the Booking Statuses list.