Releases: LouGriffith/FCC-Cafe-Menu
Releases · LouGriffith/FCC-Cafe-Menu
Release list
v1.4.0 - Google Sheets
Added
- Google Sheets sync (
admin/class-sheets-sync.php) — new Cafe Menu → Sheets Sync admin page - Hourly WP-Cron job pulls menu data from a Google Sheet and syncs it into
fcc_menuposts - Sheet is treated as the source of truth:
- New rows create new posts
- Rows matching an existing post by name (case-insensitive) update that post's meta and category
- Rows removed from the Sheet move the matching post to trash; re-adding the row restores it
- Authenticates via a Google service account using a hand-rolled RS256 JWT signer (
openssl_sign) andwp_remote_post/wp_remote_get— no Composer or external libraries required, consistent with the plugin's existing dependency-free approach - Access tokens cached via WP transients to avoid re-authenticating on every request
- Settings page allows configuring: enable/disable sync, Sheet ID, sheet/tab name, and the server path to the credentials JSON file
- Manual "Sync Now" button for on-demand syncing outside the hourly schedule
- Sync log stored and displayed showing created / updated / trashed / error counts plus a per-item message log
- Credentials file path is expected to live outside the public web root or behind an
.htaccessDeny from allrule — the settings page checks and displays whether the file is found - Cron event cleared automatically on plugin deactivation
Sheet column format
Row 1 headers (exact names, case-insensitive):
name | category | description | size_1 | price_1 | size_2 | price_2 | is_happy_hour | allergen_info
What's Changed
- v.1.5.0 - Google Sheet Sync by @LouGriffith in #2
Full Changelog: v1.8.0...v1.4.0
v1.3.0 - Bricks Individual Item
Added
- Bricks Builder dynamic data tags (
includes/class-bricks-dynamic-tags.php) - Tags appear under the FCC Menu group in the Bricks dynamic data picker:
{fcc_item_row}— full name + dotted leader + size/price row HTML, ready for use in a Rich Text element inside a query loop{fcc_item_description}— item description text{fcc_item_price_1}/{fcc_item_price_2}— formatted prices (e.g.$6.25){fcc_item_size_1}/{fcc_item_size_2}— size labels (e.g.16oz){fcc_item_is_happy_hour}— returns1if happy hour, empty string if not
What's Changed
- v1.8.0 - Add Bricks Functionality by @LouGriffith in #1
New Contributors
- @LouGriffith made their first contribution in #1
Full Changelog: https://github.com/LouGriffith/FCC-Cafe-Menu/commits/v1.8.0