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 16 functions
Admin screens, reports and tools functionsFunctions behind the admin screens: reports, tools, import and export, and list tables. 182 functions. Each entry shows…Cart functionsFunctions for reading and changing the cart: adding, removing and updating menu items, totals, discounts and cart messa…Checkout functionsFunctions that build the checkout page, process the order form and handle login and registration during checkout. 79 fu…Core, formatting and countries functionsGeneral helper functions: options, dates and times, formatting, countries, AJAX helpers and error tracking. 175 functio…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 items and categories functionsFunctions for menu items: prices, add-ons, categories, availability and the menu items post type. 99 functions. Each en…Orders and payments functionsFunctions for creating, reading and updating orders (stored as payments), their statuses, notes, totals and delivery de…Payment gateways functionsFunctions for payment gateways: registering and selecting gateways, and the built-in Cash on Delivery, PayPal Standard…Privacy and compatibility functionsFunctions for the WordPress privacy tools (export and erase personal data) and for compatibility with other plugins. 54…Settings, options and store hours functionsFunctions that register and read RestroPress settings, plus store hours helpers. 62 functions. Each entry shows the sig…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…
Was this page helpful?
