Functions
These are the global functions RestroPress defines, grouped by what they work with. Every entry shows the signature, parameters, return value, an example for the functions you are likely to call, and the file it is defined in. Functions are listed in the order they appear in the source file.
Functions marked internal are hook callbacks, screen renderers and upgrade routines. They are documented for completeness, but extensions normally should not call them. Classes such as RPRESS_Payment, RPRESS_Cart, RPRESS_Customer and RPRESS_Fooditem hold much of the logic behind these functions.
All 38 functions
Account pages functionsFunctions for the customer account added or changed in RestroPress 3.5.1: section URLs, order cards, account templates…Admin notification center functionsFunctions for the admin notices and the Dashboard suggestion card, added in RestroPress 3.5.1. 24 functions. Each entry…Admin screens, reports and tools functionsFunctions behind the admin screens: reports, tools, import and export, and list tables. 182 functions. Each entry shows…Allergens functionsFunctions for the 14 standard allergens: assigning them to menu items, showing badges and filtering the menu. 34 functi…Block storefront functionsFunctions and render helpers for the service bar, category navigation, search, item grid and cart panel blocks. 19 func…Cart functionsFunctions for reading and changing the cart: adding, removing and updating menu items, totals, discounts and cart messa…Checkout experience functionsFunctions for the reworked checkout: the sticky Place order bar, inline field errors and the order summary. 9 functions…Checkout flow functionsFunctions for the checkout layout and flow added in RestroPress 3.5.1. 10 functions. Each entry shows the signature, pa…Checkout functionsFunctions that build the checkout page, process the order form and handle login and registration during checkout. 79 fu…Checkout upsell functionsFunctions for the "Add to your order" upsell row at checkout. 18 functions. Each entry shows the signature, parameters…Core, formatting and countries functionsGeneral helper functions: options, dates and times, formatting, countries, AJAX helpers and error tracking. 175 functio…Customer account functionsFunctions behind the customer account dashboard: saved delivery addresses, order tracking, reorder and the reservations…Customers and users functionsFunctions for customers and user accounts, including the customers admin screens. 87 functions. Each entry shows the si…Deprecated functions functionsFunctions kept for backward compatibility. Use the replacement shown for each one. 18 functions. Each entry shows the s…Discounts functionsFunctions for discount codes: creating, validating, applying and reporting on them. 66 functions. Each entry shows the…Emails and email tags functionsFunctions for order emails, email templates and the email tags available in them. 47 functions. Each entry shows the si…Installation and upgrades functionsFunctions that run on installation and upgrade. 31 functions. Each entry shows the signature, parameters, return value…Menu importer functionsFunctions for the Switch to RestroPress importer (GloriaFood, WooCommerce-based plugins and CSV), including preview and…Menu items and categories functionsFunctions for menu items: prices, add-ons, categories, availability and the menu items post type. 99 functions. Each en…Order alerts functionsFunctions for the missed-order protection email. 3 functions. Each entry shows the signature, parameters, return value…Orders and payments functionsFunctions for creating, reading and updating orders (stored as payments), their statuses, notes, totals and delivery de…Order time slots functionsFunctions for the order time slot engine that produces ASAP and scheduled times. 7 functions. Each entry shows the sign…Other 3.5 additionsOther functions added to RestroPress core in 3.5, and core functions whose signature changed. 15 functions. Each entry…Other 3.5.1 additionsOther functions added to RestroPress core in 3.5.1. 30 functions. Each entry shows the signature, parameters, return va…Payment gateways functionsFunctions for payment gateways: registering and selecting gateways, and the built-in Cash on Delivery, PayPal Standard…Payments (Apple Pay, Google Pay) functionsFunctions for Stripe Apple Pay and Google Pay, the hardened Stripe webhook and the Paid and Not paid order labels. 28 f…Phone ordering functionsFunctions for phone-first ordering: the store card, bottom sheets, the View cart bar and Required and Optional option g…Privacy and compatibility functionsFunctions for the WordPress privacy tools (export and erase personal data) and for compatibility with other plugins. 54…QR codes and structured data functionsFunctions for the menu QR code and the Restaurant and Menu structured data. 1 functions. Each entry shows the signature…Reminder emails functionsFunctions that schedule and send the reminder email for scheduled orders. 22 functions. Each entry shows the signature…Reservations functionsFunctions for table reservations: slots and capacity, creating and confirming reservations, the booking form and the re…Settings, options and store hours functionsFunctions that register and read RestroPress settings, plus store hours helpers. 62 functions. Each entry shows the sig…Setup wizard functionsFunctions behind the seven-step setup wizard and its live phone preview. 44 functions. Each entry shows the signature…Storefront layout functionsFunctions for the storefront layout engine and template pack components, added in RestroPress 3.5.1. 26 functions. Each…Tax classes functionsFunctions for tax classes: rates per category or menu item and optional tax codes. 7 functions. Each entry shows the si…Taxes functionsFunctions for tax settings and tax calculation. 15 functions. Each entry shows the signature, parameters, return value…Templates functionsFunctions that load templates and print parts of the storefront. 44 functions. Each entry shows the signature, paramete…Webhooks functionsFunctions behind outgoing webhooks, added in RestroPress 3.5.1: endpoints, event payloads, request signing, the deliver…
Was this page helpful?
