Actions
Actions let you run your own code at a specific moment: when an item is added to the cart, before the checkout form is shown, after an order is paid, when an order's status changes. Register a callback with add_action( 'hook_name', 'your_function', $priority, $accepted_args ). An action callback does not return anything.
Pages below are listed alphabetically. Names with a part in braces, such as rpress_{$action}, are built at run time. The page explains which values the placeholder can take. Some actions are dispatched from a request: see URL and form actions and AJAX actions.
All 461 actions
before_fooditems_listFires before the menu item list in the menu templates. Runs before the category loop inside the menu item list wrapper…get_template_part_{$slug}Fires before a RestroPress template part is located. Runs at the start of rpress_get_template_part(), before the templa…in_plugin_update_message-{$file}Fires inside the update notice row of an extension on the Plugins screen. Runs in RestroPress_Addon_Updater::show_updat…post_restropress_addon_updater_setupFires after the extension updater has registered its plugin data. Runs at the end of the RestroPress_Addon_Updater cons…rest_after_insert_{$post_type}Fires after an order post has been inserted and its data fully saved through the REST API. Mirrors the WordPress core r…rest_insert_{$post_type}Fires after an order post has been inserted through the REST API. Mirrors the WordPress core rest_insert_{$post_type} a…rpress_add_discount_form_before_amountFires on the Add Discount form before the Amount row. Runs while the Add New Discount form is being printed, inside the…rpress_add_discount_form_before_excluded_productsFires on the Add Discount form before the excluded items row. Runs while the Add New Discount form is being printed, in…rpress_add_discount_form_before_expirationFires on the Add Discount form before the Expiration date row. Runs while the Add New Discount form is being printed, i…rpress_add_discount_form_before_max_usesFires on the Add Discount form before the Max Uses row. Runs while the Add New Discount form is being printed, inside t…rpress_add_discount_form_before_min_cart_amountFires on the Add Discount form before the Minimum Amount row. Runs while the Add New Discount form is being printed, in…rpress_add_discount_form_before_nameFires on the Add Discount form before the Name row. Runs while the Add New Discount form is being printed, inside the f…rpress_add_discount_form_before_productsFires on the Add Discount form before the menu item requirements row. Runs while the Add New Discount form is being pri…rpress_add_discount_form_before_startFires on the Add Discount form before the Start date row. Runs while the Add New Discount form is being printed, inside…rpress_add_discount_form_before_typeFires on the Add Discount form before the Type row. Runs while the Add New Discount form is being printed, inside the f…rpress_add_discount_form_before_use_onceFires on the Add Discount form before the Use Once Per Customer row. Runs while the Add New Discount form is being prin…rpress_add_discount_form_bottomFires at the bottom of the Add Discount form, after the form table. Runs after the closing table tag of the Add New Dis…rpress_add_discount_form_topFires at the top of the Add Discount form, before the form table. Runs right after the opening form tag of the Add New…rpress_add_email_tagsFires on init to let code register custom email template tags. Runs from rpress_load_email_tags() on init at priority -…rpress_admin_order_noticeFires after the customer order email is sent, to trigger the admin order notification. Runs at the end of rpress_email_…rpress_admin_order_preview_before_fooditemsFires in the order preview modal before the ordered items. Runs inside the order preview template after the summary det…rpress_admin_order_preview_endFires at the end of the order preview modal content. Runs inside the order preview template after the ordered items and…rpress_admin_order_preview_startFires at the top of the order preview modal content. Runs inside the underscore template printed for the order preview…rpress_after_cartFires after the sidebar cart markup is printed. Runs at the end of the sidebar cart template, after the cart wrapper el…rpress_after_cart_widgetFires after the cart contents inside the cart widget. Runs in the cart widget output right after rpress_shopping_cart()…rpress_after_category_listFires after the category list in the menu sidebar. Runs inside the sidebar categories container after the list of categ…rpress_after_cc_expirationFires after the expiration field of the default credit card form. Runs in rpress_get_cc_form() after the expiration sel…rpress_after_cc_fieldsFires after the default credit card fieldset. Runs at the end of rpress_get_cc_form(). Core hooks rpress_default_cc_add…rpress_after_checkout_buttonFires after the checkout button in the sidebar cart. Runs at the end of the sidebar cart totals template, after the che…rpress_after_checkout_cartFires after the checkout cart markup is output. Runs at the end of rpress_checkout_cart(), after the rpress_checkout_ca…rpress_after_customer_details_headerFires in the header action area of the customer detail screen. Runs inside the page actions container next to the Custo…rpress_after_customer_edit_linkFires after the Edit Customer button on the customer profile card. Runs inside the profile form only when the current u…rpress_after_fooditem_contentFires after the content of a single menu item. Runs from a the_content filter on the single menu item page (main query…rpress_after_fooditem_historyFires after the menu item history table and its pagination are output. Runs at the end of the menu item history templat…rpress_after_graphFires after a graph is output. Runs at the end of RPRESS_Graph::display(), after the graph script and container have be…rpress_after_installFires on the admin side when the customers table has to be created after installation. Runs from the admin_init callbac…rpress_after_order_historyFires after the customer's order history list is output. Runs after the order history container, including the infinite…rpress_after_order_titleFires after the order title area of the order details screen. The output is captured and printed in the top alert area…rpress_after_payment_actionsFires after a payment has been completed, once the delayed or immediate after-payment processing runs. By default it fi…rpress_after_payment_gatewaysFires after the payment mode selector and before the purchase form area. Runs at the end of rpress_payment_mode_select(…rpress_after_payment_receiptFires after the order receipt and tracking page content. Runs at the end of the receipt template, inside the receipt wr…rpress_after_purchase_formFires after the checkout form element is closed. Runs in rpress_checkout_form() right after the closing form tag, insid…rpress_after_service_timeFires after the time selector of the delivery or pickup template. Runs at the end of the service time block of the deli…rpress_after_set_cart_item_quantityFires after the quantity of a cart line has been updated. Runs after the cart has been saved in RPRESS_Cart::set_item_q…rpress_after_taxonomy_widgetFires after the term list in the categories and tags widget. Runs in the categories and tags widget right after the clo…rpress_after_termsFires after the terms and conditions text on checkout. Runs in rpress_terms_agreement() after the agreement text inside…rpress_ajax_checkout_errorsFires when checkout errors need to be output for an AJAX request. Runs just before the request ends, when the AJAX chec…rpress_anonymize_customerFires after a customer record has been anonymized so extensions can anonymize more data. Runs in _rpress_anonymize_cust…rpress_anonymize_file_fooditem_logFires after the IP address of a file download log has been anonymized. Runs in rpress_privacy_file_fooditem_logs_eraser…rpress_anonymize_paymentFires while a payment is being anonymized so extensions can anonymize more data. Runs in _rpress_anonymize_payment() wh…rpress_api_output_afterFires after the API response has been rendered. Runs in RPRESS_API::output() after the response has been printed in the…rpress_api_output_beforeFires before the API response is rendered. Runs in RPRESS_API::output() right after the HTTP status header is sent and…rpress_api_output_{$format}Fires when an API response is requested in a format other than JSON or XML. Runs in the default branch of the format sw…rpress_batch_export_class_includeFires when a batch export or tool class is requested so it can load its class file. Called with the name of the request…rpress_batch_import_class_includeFires before a batch importer class is instantiated during an import request. Runs in the AJAX handlers for the file up…rpress_before_cartFires before the sidebar cart markup is printed. Runs at the top of the sidebar cart template, before the cart wrapper…rpress_before_cart_widgetFires before the cart contents inside the cart widget. Runs in the cart widget output after the widget title and before…rpress_before_category_listFires before the category list in the menu sidebar. Runs inside the sidebar categories container, before the category h…rpress_before_cc_expirationFires before the expiration field of the default credit card form. Runs in rpress_get_cc_form() after the card name fie…rpress_before_cc_fieldsFires before the default credit card fieldset. Runs at the start of rpress_get_cc_form(), before the card fieldset mark…rpress_before_checkout_cartFires before the checkout cart markup is output. Runs at the start of rpress_checkout_cart(), before the rpress_checkou…rpress_before_fooditem_contentFires before the content of a single menu item. Runs from a the_content filter on the single menu item page (main query…rpress_before_fooditem_historyFires before the customer's menu item history table is output. Runs in the menu item history template when the current…rpress_before_graphFires before a graph is output. Runs at the start of RPRESS_Graph::display(), before the graph script and container are…rpress_before_order_historyFires before the customer's order history list is output. Runs in the order history template when the logged-in custome…rpress_before_payment_receiptFires before the order receipt and tracking page content. Runs in the receipt shortcode template after the order has be…rpress_before_payment_status_changeFires just before a payment's status is changed. Runs in RPRESS_Payment::update_status after rpress_should_update_payme…rpress_before_purchase_formFires before the checkout form element is output. Runs in rpress_checkout_form() inside the checkout form wrapper, afte…rpress_before_service_timeFires before the time selector of a service, so extensions can output a date selector. Runs in the delivery and pickup…rpress_before_taxonomy_widgetFires before the term list in the categories and tags widget. Runs in the categories and tags widget after the title an…rpress_before_termsFires before the terms and conditions text on checkout. Runs in rpress_terms_agreement() inside the hidden terms contai…rpress_cart_actionsFires before the Remove link in a checkout cart row. Runs for every cart item row inside the actions wrapper, before th…rpress_cart_contents_loadedFires after the cart contents have been loaded and filtered. Runs at the end of RPRESS_Cart::get_contents(), after rpre…rpress_cart_contents_loaded_from_sessionFires after the cart contents have been read from the session. Runs at the end of RPRESS_Cart::get_contents_from_sessio…rpress_cart_discounts_loaded_from_sessionFires after the cart discounts have been read from the session. Runs at the end of RPRESS_Cart::get_discounts_from_sess…rpress_cart_discounts_removedFires after all discount codes have been removed from the cart. Runs in RPRESS_Cart::remove_all_discounts() after the c…rpress_cart_discounts_updatedFires after the set of discount codes on the cart has changed. Runs after a discount code is added (rpress_set_cart_dis…rpress_cart_discount_removedFires after a discount code has been removed from the cart. Runs when a single discount code is removed, from RPRESS_Ca…rpress_cart_discount_setFires after a discount code has been stored in the cart session. Runs in rpress_set_cart_discount() after the cart_disc…rpress_cart_emptyFires when the checkout page is shown with an empty cart. Runs in rpress_checkout_form() when the cart has no items and…rpress_cart_fee_rows_afterFires at the end of each fee row in the checkout cart table. Runs for every fee in the cart, inside its tr element and…rpress_cart_fee_rows_beforeFires at the start of each fee row in the checkout cart table. Runs for every fee in the cart, inside its tr element an…rpress_cart_footer_buttonsFires inside the footer button row of the checkout cart table. Runs inside a footer row below the total. The row is onl…rpress_cart_items_afterFires after the subtotal row in the checkout cart table. Runs at the end of the table body of the checkout cart table…rpress_cart_items_beforeFires before the item rows in the checkout cart table. Runs in the checkout cart table template, at the start of the ta…rpress_cart_items_middleFires after the item rows in the checkout cart table. Runs in the checkout cart table template after the last cart item…rpress_cart_line_itemFires after the fee rows in the sidebar cart totals. Runs in the sidebar cart totals list after the subtotal, discount…rpress_cc_billing_bottomFires at the bottom of the billing details fieldset. Runs in rpress_default_cc_address_fields() after the state field a…rpress_cc_billing_topFires at the top of the billing details fieldset. Runs in rpress_default_cc_address_fields() after the Billing Details…rpress_cc_formFires to render the default credit card form. Runs in rpress_show_cc_form() when the cart total is greater than zero an…rpress_checkout_before_gatewayFires after checkout validation, just before the order is sent to the payment gateway. Runs in rpress_process_purchase_…rpress_checkout_cart_bottomFires at the bottom of the checkout cart container. Runs in rpress_checkout_cart() after the checkout_cart template par…rpress_checkout_cart_item_title_afterFires after the item details in a checkout cart row. Runs for every cart item row after the title, quantity, price and…rpress_checkout_cart_topFires at the top of the checkout cart container. Runs in rpress_checkout_cart() after the rpress_checkout_cart_wrap div…rpress_checkout_error_checksFires after the standard checkout validation so extensions can add their own errors. Runs in rpress_process_purchase_fo…rpress_checkout_form_bottomFires at the bottom of the checkout form. Runs in rpress_checkout_form() after rpress_payment_mode_select, before the f…rpress_checkout_form_topFires at the top of the checkout form. Runs inside the checkout form tag in rpress_checkout_form(), before rpress_purch…rpress_checkout_login_fields_afterFires after the submit button of the checkout login form. Runs at the end of rpress_get_login_fields(), after the Login…rpress_checkout_login_fields_beforeFires before the fields of the checkout login form. Runs in rpress_get_login_fields() after the "Register" link and bef…rpress_checkout_service_optionsFires at the top of the checkout form wrapper, before the purchase form. Runs inside rpress_checkout_form() when the ca…rpress_checkout_service_option_updatedFires when the service option is updated from the checkout page. Fires in the checkout_update_service_option AJAX handl…rpress_checkout_table_body_firstFires at the start of each cart item row in the checkout cart table. Runs for every cart item row, inside the tr elemen…rpress_checkout_table_body_lastFires at the end of each cart item row in the checkout cart table. Runs for every cart item row after the item name cel…rpress_checkout_table_discount_firstFires at the start of the discount row in the checkout cart table. Runs inside the discount footer row before its cell…rpress_checkout_table_discount_lastFires at the end of the discount row in the checkout cart table. Runs inside the discount footer row after its cell. Th…rpress_checkout_table_footer_firstFires at the start of the total row in the checkout cart table. Runs inside the total footer row before the total cell…rpress_checkout_table_footer_lastFires at the end of the total row in the checkout cart table. Runs inside the total footer row after the total cell. Ex…rpress_checkout_table_subtotal_firstFires at the start of the tax-exclusive subtotal row in the checkout cart table. Runs inside the subtotal footer row be…rpress_checkout_table_subtotal_lastFires at the end of the tax-exclusive subtotal row in the checkout cart table. Runs inside the subtotal footer row afte…rpress_checkout_table_tax_firstFires before the tax row in the checkout cart table. Runs only when taxes are enabled, in the footer, before the tax ro…rpress_checkout_table_tax_lastFires after the tax row in the checkout cart table. Runs only when taxes are enabled, in the footer, after the tax row…rpress_checkout_user_error_checksFires after the checkout user has been resolved so extensions can validate user-dependent fields. Runs in rpress_proces…rpress_complete_fooditem_purchaseFires for each unit of each menu item when a payment is completed for the first time. Runs in rpress_complete_purchase…rpress_complete_purchaseFires when a payment is marked as complete. Runs in rpress_complete_purchase after the payment's completed date has bee…rpress_customers_table_bottomFires on the Customers list screen after the customers table. Runs in rpress_customers_list() after the list table form…rpress_customers_table_topFires on the Customers list screen after the page heading, before the table form. Runs in rpress_customers_list() right…rpress_customer_after_tablesFires at the end of the customer detail orders and menu items wrapper. Runs after the Recent Orders, Contact & Address…rpress_customer_before_statsFires on the customer detail view between the profile card and the metrics row. Runs after the profile card has been pr…rpress_customer_before_tablesFires at the start of the customer detail orders and menu items wrapper. Runs as the first thing inside the wrapper ele…rpress_customer_before_tables_wrapperFires on the customer detail view before the orders and menu items section wrapper. Runs after the stats block and befo…rpress_customer_card_bottomFires at the bottom of the customer detail view after the notes, tools and delete sections. Runs after the notes, tools…rpress_customer_card_topFires at the top of the customer detail view, before the profile card. Runs at the start of the customer detail view, b…rpress_customer_delete_bottomFires after the customer Delete section has been printed. Runs at the end of rpress_customers_delete_view() after the f…rpress_customer_delete_inputsFires inside the customer move-to-trash form after the confirmation checkbox. Runs inside the delete form beside the co…rpress_customer_delete_topFires before the Delete section of the customer screen is printed. Runs at the start of rpress_customers_delete_view()…rpress_customer_post_add_emailFires after an additional email is attached to a customer. Fires in RPRESS_Customer::add_email() after the additional_e…rpress_customer_post_add_noteFires after a note is added to a customer. Fires in RPRESS_Customer::add_note() after the notes column update attempt…rpress_customer_post_attach_paymentFires after a payment is attached to a customer. Fires at the end of RPRESS_Customer::attach_payment(), after the payme…rpress_customer_post_createFires after a customer is created. Fires at the end of RPRESS_Customer::create(), after the database write has been att…rpress_customer_post_decrease_purchase_countFires after a customer's purchase count is decreased. Fires in RPRESS_Customer::decrease_purchase_count() after the upd…rpress_customer_post_decrease_valueFires after a customer's lifetime value is decreased. Fires in RPRESS_Customer::decrease_value() after the update attem…rpress_customer_post_increase_purchase_countFires after a customer's purchase count is increased. Fires in RPRESS_Customer::increase_purchase_count() after the upd…rpress_customer_post_increase_valueFires after a customer's lifetime value is increased. Fires in RPRESS_Customer::increase_value() after the update attem…rpress_customer_post_remove_emailFires after an additional email is removed from a customer. Fires in RPRESS_Customer::remove_email() after the addition…rpress_customer_post_remove_paymentFires after a payment is removed from a customer. Fires at the end of RPRESS_Customer::remove_payment(), after the paym…rpress_customer_post_set_primary_emailFires after an email is set as the customer's primary email. Fires at the end of RPRESS_Customer::set_primary_email()…rpress_customer_post_updateFires after a customer record is updated. Fires at the end of RPRESS_Customer::update(), whether or not the database up…rpress_customer_pre_add_emailFires before an additional email is attached to a customer. Fires in RPRESS_Customer::add_email() after the address pas…rpress_customer_pre_add_noteFires before a note is added to a customer. Fires in RPRESS_Customer::add_note() after the note string has been built a…rpress_customer_pre_attach_paymentFires before a payment is attached to a customer. Fires in RPRESS_Customer::attach_payment() after the payment ID list…rpress_customer_pre_createFires before a customer is created. Fires in RPRESS_Customer::create() after the data has been sanitized and the email…rpress_customer_pre_decrease_purchase_countFires before a customer's purchase count is decreased. Fires in RPRESS_Customer::decrease_purchase_count() after the am…rpress_customer_pre_decrease_valueFires before a customer's lifetime value is decreased. Fires in RPRESS_Customer::decrease_value() after the amount has…rpress_customer_pre_increase_purchase_countFires before a customer's purchase count is increased. Fires in RPRESS_Customer::increase_purchase_count() after the am…rpress_customer_pre_increase_valueFires before a customer's lifetime value is increased. Fires in RPRESS_Customer::increase_value() after the amount has…rpress_customer_pre_remove_emailFires before an additional email is removed from a customer. Fires in RPRESS_Customer::remove_email() after the address…rpress_customer_pre_remove_paymentFires before a payment is removed from a customer. Fires in RPRESS_Customer::remove_payment() after the payment ID has…rpress_customer_pre_set_primary_emailFires before an email is set as the customer's primary email. Fires in RPRESS_Customer::set_primary_email() after the a…rpress_customer_pre_updateFires before a customer record is updated. Fires in RPRESS_Customer::update() after the supplied columns have been sani…rpress_customer_recent_purchases_actionsFires after the View Details link in each row of a customer's recent orders table. Runs inside the action cell of every…rpress_customer_stats_listFires at the end of the extension stats list on the customer detail view. Runs inside the extension stats list (ul) sho…rpress_customer_tools_bottomFires after the Tools section of the customer screen has been printed. Runs at the end of rpress_customer_tools_view()…rpress_customer_tools_topFires before the Tools section of the customer screen is printed. Runs at the start of rpress_customer_tools_view(), ab…rpress_delete_api_access_logFires after an API access log entry has been deleted by a privacy erasure request. Runs in rpress_privacy_api_access_lo…rpress_delivery_location_fieldFires to print the location selector in the service type step. Runs in the delivery option templates to print a locatio…rpress_deprecated_argument_runFires when a function is called with a deprecated argument. Fired by the deprecated-argument helper before any notice i…rpress_deprecated_function_runFires when a deprecated RestroPress function is called. Fired by the deprecation helper at the start of its work, befor…rpress_detach_deleted_userFires after a deleted WordPress user is detached from their customer record. Runs in rpress_detach_deleted_user(), whic…rpress_discounts_page_bottomFires at the bottom of the Discount Codes list screen, after the table form. Runs after the discount codes table form h…rpress_discounts_page_topFires at the top of the Discount Codes list screen, before the table form. Runs after the page heading and divider on t…rpress_discount_decrease_use_countFires after a discount's usage count has been decreased. Runs inside RPRESS_Discount::decrease_usage() once the uses me…rpress_discount_form_before_codeFires on the Add Discount form before the Code row. Runs while the Add New Discount form is being printed, inside the f…rpress_discount_increase_use_countFires after a discount's usage count has been increased. Runs inside RPRESS_Discount::increase_usage() once the uses me…rpress_discount_saveFires after a discount's pending changes are saved. Fires in RPRESS_Discount::save() after the pending properties have…rpress_duplicate_fooditemFires after a menu item has been duplicated from the Menu Items list. Runs inside the duplicate handler once the new dr…rpress_edit_discount_form_before_amountFires on the Edit Discount form before the Amount row. Runs while the Edit Discount form is being printed, inside the f…rpress_edit_discount_form_before_codeFires on the Edit Discount form before the Code row. Runs while the Edit Discount form is being printed, inside the for…rpress_edit_discount_form_before_excluded_productsFires on the Edit Discount form before the excluded items row. Runs while the Edit Discount form is being printed, insi…rpress_edit_discount_form_before_expirationFires on the Edit Discount form before the Expiration date row. Runs while the Edit Discount form is being printed, ins…rpress_edit_discount_form_before_max_usesFires on the Edit Discount form before the Max Uses row. Runs while the Edit Discount form is being printed, inside the…rpress_edit_discount_form_before_min_cart_amountFires on the Edit Discount form before the Minimum Amount row. Runs while the Edit Discount form is being printed, insi…rpress_edit_discount_form_before_nameFires on the Edit Discount form before the Name row. Runs while the Edit Discount form is being printed, inside the for…rpress_edit_discount_form_before_productsFires on the Edit Discount form before the menu item requirements row. Runs while the Edit Discount form is being print…rpress_edit_discount_form_before_startFires on the Edit Discount form before the Start date row. Runs while the Edit Discount form is being printed, inside t…rpress_edit_discount_form_before_statusFires on the Edit Discount form before the Status row. Runs while the Edit Discount form is being printed, inside the f…rpress_edit_discount_form_before_typeFires on the Edit Discount form before the Type row. Runs while the Edit Discount form is being printed, inside the for…rpress_edit_discount_form_before_use_onceFires on the Edit Discount form before the Use Once Per Customer row. Runs while the Edit Discount form is being printe…rpress_edit_discount_form_bottomFires at the bottom of the Edit Discount form, after the form table. Runs after the closing table tag of the Edit Disco…rpress_edit_discount_form_topFires at the top of the Edit Discount form, before the form table. Runs right after the opening form tag of the Edit Di…rpress_email_bodyFires after the email body has been rendered, before the footer template part. Runs in RPRESS_Emails::build_email() in…rpress_email_body_footerFires before the closing body tag of the deprecated email footer markup. Runs inside the deprecated rpress_get_email_bo…rpress_email_body_headerFires after the opening body tag of the deprecated email header markup. Runs inside the deprecated rpress_get_email_bod…rpress_email_footerFires after the email footer template part has been loaded. Runs in RPRESS_Emails::build_email() in HTML mode, immediat…rpress_email_headerFires after the email header template part has been loaded. Runs in RPRESS_Emails::build_email() in HTML mode, immediat…rpress_email_send_afterFires after wp_mail() has been called by RPRESS_Emails::send(). Runs in RPRESS_Emails::send() immediately after wp_mail…rpress_email_send_beforeFires before an email is built and sent with RPRESS_Emails::send(). Runs in RPRESS_Emails::send() before tags are parse…rpress_email_template_{$template}Fires in place of the body template part when an action exists for the current email template. Runs in RPRESS_Emails::b…rpress_empty_cartFires after the cart has been emptied. Runs at the end of RPRESS_Cart::empty_cart(), after contents, fees, the resuming…rpress_export_import_bottomFires at the bottom of the Export / Import Settings admin page. Runs after the Import Settings box inside the metabox h…rpress_export_import_topFires at the top of the Export / Import Settings admin page. Runs inside the page's metabox holder, before the Export S…rpress_fooditems_category_titleFires for each item to print its category heading. Runs inside the item loop of the menu list templates for every menu…rpress_fooditems_contextual_helpFires on the menu item edit screens so extensions can add contextual help. Runs on the load-post.php and load-post-new…rpress_fooditems_list_afterFires once after all categories in the menu list. Runs once at the end of the menu list templates after every category…rpress_fooditems_list_beforeFires before the items of each category are printed. Runs once per category in the menu list templates, after the query…rpress_fooditems_list_bottomFires after the last item of a category with items. Runs once per category in the menu list templates, only when the ca…rpress_fooditems_list_topFires before the first item of a category with items. Runs once per category in the menu list templates, only when the…rpress_fooditem_afterFires at the end of the inner area of a menu item card. Runs in the single item templates for all layouts, after the co…rpress_fooditem_after_cart_buttonFires after the add to cart button of a menu item card. Runs in the single item templates for all layouts directly afte…rpress_fooditem_after_thumbnailFires after the image of a menu item card. Runs in the single item templates for all layouts directly after the item im…rpress_fooditem_after_titleFires after the title block of a menu item card. Runs in the fooditem, grid and list layout templates after the item ti…rpress_fooditem_beforeFires at the start of the inner area of a menu item card. Runs in the single item templates for all layouts, before the…rpress_fooditem_categoriesFires inside the Category field group of the menu item editor. Runs in the Category, Tags & Dietary section, directly a…rpress_fooditem_data_panelsFires at the bottom of the menu item editor, after all sections are rendered. Runs inside the rp-fooditem-editor contai…rpress_fooditem_decrease_earningsFires after the earnings total of a menu item has been decreased. Runs in RPRESS_Fooditem::decrease_earnings() after th…rpress_fooditem_decrease_salesFires after the sales count of a menu item has been decreased. Runs in RPRESS_Fooditem::decrease_sales() after the _rpr…rpress_fooditem_editor_topFires at the top of the menu item editor, before any section is rendered. Runs inside the rp-fooditem-editor container…rpress_fooditem_history_header_endFires at the end of the header row of the menu item history table. Runs inside the table header row after the item name…rpress_fooditem_history_header_startFires at the start of the header row of the menu item history table. Runs inside the table header row before the item n…rpress_fooditem_history_row_endFires at the end of each menu item row in the menu item history table. Runs once per cart item of each order, inside th…rpress_fooditem_history_row_startFires at the start of each menu item row in the menu item history table. Runs once per cart item of each order, inside…rpress_fooditem_increase_earningsFires after the earnings total of a menu item has been increased. Runs in RPRESS_Fooditem::increase_earnings() after th…rpress_fooditem_increase_salesFires after the sales count of a menu item has been increased. Runs in RPRESS_Fooditem::increase_sales() after the _rpr…rpress_fooditem_options_addons_dataFires at the end of the Add-ons section of the menu item editor. Runs after the add-on group selector inside the Add-on…rpress_fooditem_options_category_dataFires at the end of the Category, Tags & Dietary section of the menu item editor. Runs after the category, tag and diet…rpress_fooditem_options_general_after_pricingFires inside the Pricing section of the menu item editor, after the before-pricing hook. Runs at the end of the Pricing…rpress_fooditem_options_general_before_pricingFires inside the Pricing section of the menu item editor, before the other pricing hooks. Runs at the end of the Pricin…rpress_fooditem_options_general_dataFires at the end of the Advanced Settings section of the menu item editor. Runs after the SKU (when SKUs are enabled) a…rpress_fooditem_options_general_endFires at the end of the Pricing section of the menu item editor. The last of three consecutive hooks at the end of the…rpress_fooditem_options_general_topFires at the end of the Image & Type section of the menu item editor. Runs inside the first section of the Menu Item Da…rpress_fooditem_post_createFires after a menu item is created through RPRESS_Fooditem::create(). Runs right after wp_insert_post() and before the…rpress_fooditem_pre_createFires before a menu item is created through RPRESS_Fooditem::create(). Runs immediately before wp_insert_post() is call…rpress_fooditem_section_after_addonsFires in the menu item editor after the Add-ons section, which is the last built-in section. Runs while the menu item e…rpress_fooditem_section_after_categoryFires in the menu item editor between the Category & Tags section and Add-ons. Runs while the menu item editor panel is…rpress_fooditem_section_after_descriptionFires between the Description and Pricing sections of the menu item editor. Lets extensions output a complete section b…rpress_fooditem_section_after_image_typeFires between the Image & Type and Description sections of the menu item editor. Lets extensions output a complete sect…rpress_fooditem_section_after_pricingFires in the menu item editor between the Pricing section and Category & Tags. Runs while the menu item editor panel is…rpress_fooditem_shortcode_itemFires to print each menu item in the menu list templates. Runs inside the item loop of the menu list templates once for…rpress_gateway_{$gateway}Fires to hand the purchase data to the gateway chosen at checkout. Runs in rpress_send_to_gateway during checkout proce…rpress_get_cartFires where the cart should be displayed. Fired by the rpress_cart shortcode and at the end of the menu item list templ…rpress_get_delivery_stepsFires where the service type (delivery steps) selector is output on the checkout. Runs inside the rp-checkout-service-o…rpress_get_food_categoriesFires before the category menu in the menu list templates. Runs in the fooditem and list menu templates just before rp_…rpress_graph_load_scriptsFires after the graphing library script is enqueued. Runs inside RPRESS_Graph::load_scripts() right after the jquery-fl…rpress_insert_paymentFires after a new payment has been created and saved, before its order status is set to pending. Runs at the end of rpr…rpress_insert_payment_noteFires after a payment note has been added to an order. Runs in rpress_insert_payment_note() after the note has been sto…rpress_insert_userFires after a new user has been created during checkout registration. Runs after the user has been inserted and before…rpress_invalid_user_verification_tokenFires when a submitted account verification token is invalid. Runs in rpress_process_user_account_verification() when r…rpress_login_fields_afterFires after the registration link at the end of the login form fields. Runs at the end of the login form, after the pas…rpress_login_fields_beforeFires before the username field in the login form. Runs inside the login shortcode form, after the optional social logi…rpress_login_form_logged_inFires in the login shortcode when the visitor is already logged in. Runs in place of the login form for a logged-in use…rpress_log_user_inFires after RestroPress has logged a user in. Runs at the end of rpress_log_user_in, after the auth cookie is set, the…rpress_menu_page_topFires at the top of the menu page, above the menu toolbar, in the grid and list layouts. Runs at the start of the menu…rpress_order_after_view_detailsFires after the View Details button of an order in the order history list. Runs once per order, inside the actions area…rpress_order_history_row_startFires before each order card in the order history list. Runs once per order while the first page of the order history i…rpress_parse_customer_queryFires after the customer query vars have been parsed. Fires at the end of RPRESS_Customer_Query::parse_query(), once th…rpress_payments_contextual_helpFires on the Orders admin page so extensions can add contextual help. Runs on the load hook for the Orders screen after…rpress_payments_page_bottomFires at the bottom of the Orders list page, after the list form. Runs after the filters form containing the orders tab…rpress_payments_page_topFires at the top of the Orders list page, above the filter form. Runs after the page header and notices and before the…rpress_payments_table_do_bulk_actionFires for each selected order after a bulk action on the Orders list has been processed. Runs inside the bulk action lo…rpress_payment_advanced_filters_after_fieldsFires inside the Orders list advanced filters, after the last filter field. Runs just before the Apply filters and Rese…rpress_payment_advanced_filters_rowFires after the advanced filters panel of the Orders list. Runs at the end of the advanced filters block, below the App…rpress_payment_billing_detailsFires at the end of the billing details section of the order details screen. Runs after the billing address fields, ins…rpress_payment_deleteFires before an order is permanently deleted. Runs inside the delete routine after the order's sale stats have been rev…rpress_payment_deletedFires after an order has been permanently deleted. Runs at the end of the delete routine, after the order post has been…rpress_payment_history_searchFires inside the Orders list search box, before the search field. Runs within the search-box paragraph above the search…rpress_payment_mode_after_gatewaysFires after the gateway radio options are output. Runs in rpress_payment_mode_select() after the loop over the enabled…rpress_payment_mode_after_gateways_wrapFires after the gateway options wrapper. Runs in rpress_payment_mode_select() after the gateways wrapper closes and bef…rpress_payment_mode_before_gatewaysFires before the gateway radio options are output. Runs in rpress_payment_mode_select() inside the gateways wrapper, be…rpress_payment_mode_before_gateways_wrapFires before the gateway options wrapper. Runs in rpress_payment_mode_select() after the Payment legend and before the…rpress_payment_mode_bottomFires at the bottom of the payment mode selector output. Runs last in rpress_payment_mode_select(), after the container…rpress_payment_mode_selectFires to render the payment gateway selector inside the checkout form. Runs in rpress_checkout_form() after rpress_purc…rpress_payment_mode_topFires at the top of the payment gateway selector. Runs in rpress_payment_mode_select() at the start of the payment mode…rpress_payment_personal_details_listFires at the end of the customer and service edit panel on the order details screen. Runs inside the customer and servi…rpress_payment_saveFires from RPRESS_Payment::save for pending data keys that have no built-in handler. RPRESS_Payment::save loops over th…rpress_payment_savedFires after a payment has been saved with RPRESS_Payment::save. Runs whenever save() actually changed something and the…rpress_payment_view_detailsFires after the personal details list in the customer and service panel of an order. Runs directly after rpress_payment…rpress_paypal_refund_purchaseFires after a PayPal refund has been attempted for a payment. Runs at the end of rpress_refund_paypal_purchase, after t…rpress_paypal_web_acceptFires to process a PayPal IPN notification that has no handler for its transaction type. Runs in rpress_process_paypal_…rpress_paypal_{$txn_type}Fires for a PayPal IPN notification of a specific transaction type. Runs in rpress_process_paypal_ipn when at least one…rpress_popup_service_timeFires inside the date and time popup to let extensions output service time fields. Runs in the service popup template w…rpress_post_add_customer_emailFires after an email address is added to a customer from the admin. Runs at the end of rpress_add_customer_email() afte…rpress_post_add_feeFires after a fee has been added and the fees session value updated. Runs at the end of RPRESS_Fees::add_fee() after th…rpress_post_add_to_cartFires after a menu item has been added to the cart. Runs in RPRESS_Cart::add() after the cart has been updated in the s…rpress_post_customer_disconnect_user_idFires after a customer has been disconnected from their linked WordPress user. Runs at the end of rpress_disconnect_cus…rpress_post_delete_discountFires after a discount has been permanently deleted. Runs in rpress_remove_discount() right after wp_delete_post() has…rpress_post_delete_payment_noteFires after a payment note has been deleted. Runs in rpress_delete_payment_note() immediately after wp_delete_comment()…rpress_post_edit_customerFires after a customer record has been updated from the admin Edit Customer form. Runs in rpress_edit_customer() after…rpress_post_get_paymentsFires after RPRESS_Payments_Query::get_payments has collected the payments. Runs once all payments from the query have…rpress_post_insert_discountFires after a discount is added to the database. Fires in RPRESS_Discount::add() after the post and its meta have been…rpress_post_insert_logFires after a log entry has been inserted. Runs at the end of RPRESS_Logging::insert_log(), after the post, the log typ…rpress_post_insert_{$type}Fires after a row is inserted into a RestroPress custom table. Fires in RPRESS_DB::insert() after the row has been writ…rpress_post_refund_paymentFires after a refunded payment's stats have been adjusted. Runs at the end of RPRESS_Payment::process_refund, after the…rpress_post_remove_cart_discountFires after a discount code has been removed from the cart through the remove link. Runs in rpress_remove_cart_discount…rpress_post_remove_feeFires after a fee has been removed from the cart session. Runs inside RPRESS_Fees::remove_fee() only when a fee with th…rpress_post_remove_from_cartFires after an item has been removed from the cart. Runs in RPRESS_Cart::remove() after the line is unset, the cart is…rpress_post_set_user_to_activeFires after a pending user is marked as verified. Runs in rpress_set_user_to_verified() after delete_user_meta() remove…rpress_post_set_user_to_pendingFires after a user is marked as pending verification. Runs in rpress_set_user_to_pending() after update_user_meta() set…rpress_post_update_discountFires after a discount is updated in the database. Fires at the end of RPRESS_Discount::update(), after the post and me…rpress_post_update_discount_statusFires after the status of a discount is updated. Fires in RPRESS_Discount::update_status() after wp_update_post() has r…rpress_post_update_logFires after a log entry has been updated. Runs at the end of RPRESS_Logging::update_log(), after wp_update_post() and a…rpress_pre_add_to_cartFires before a menu item is added to the cart. Runs in RPRESS_Cart::add() after the menu item has been confirmed to exi…rpress_pre_complete_purchaseFires before the sale and earnings records are updated for a payment moving to a completed status. Runs in rpress_compl…rpress_pre_customer_disconnect_user_idFires before a customer is disconnected from their linked WordPress user. Runs in rpress_disconnect_customer_user_id()…rpress_pre_delete_customerFires before a customer is trashed or permanently deleted from the admin. Runs before the customer record is trashed, b…rpress_pre_delete_discountFires before a discount is permanently deleted. Runs in rpress_remove_discount() immediately before wp_delete_post() is…rpress_pre_delete_payment_noteFires before a payment note is deleted. Runs in rpress_delete_payment_note() before wp_delete_comment() permanently rem…rpress_pre_edit_customerFires before a customer record is updated from the admin Edit Customer form. Runs in rpress_edit_customer() after the d…rpress_pre_get_customersFires before customers are retrieved. Fires in RPRESS_Customer_Query::get_items() before the cache key is computed and…rpress_pre_get_paymentsFires before the payments query runs in RPRESS_Payments_Query::get_payments. Runs after the query arguments have been p…rpress_pre_insert_customer_noteFires after a note is added to a customer, before the note HTML is rendered. Runs in rpress_customer_save_note() immedi…rpress_pre_insert_discountFires before a discount is added to the database. Fires in RPRESS_Discount::add() after the meta has been filtered and…rpress_pre_insert_logFires before a log entry is inserted. Runs in RPRESS_Logging::insert_log() before wp_insert_post() is called. The data…rpress_pre_insert_payment_noteFires before a payment note is added to an order. Runs in rpress_insert_payment_note() after the payment ID has been ch…rpress_pre_insert_{$type}Fires before a row is inserted into a RestroPress custom table. Fires in RPRESS_DB::insert() after the column defaults…rpress_pre_process_purchaseFires at the very start of checkout form processing. Runs at the top of rpress_process_purchase_form(), before the chec…rpress_pre_process_register_formFires before the registration form submission is validated. Runs in rpress_process_register_form for a logged-out visit…rpress_pre_refund_paymentFires before stats are reduced for a refunded payment. Runs in RPRESS_Payment::process_refund after rpress_should_proce…rpress_pre_remove_cart_discountFires before a discount code is removed from the cart through the remove link. Runs in rpress_remove_cart_discount(), w…rpress_pre_remove_from_cartFires before an item is removed from the cart. Runs at the start of RPRESS_Cart::remove(), before the line is unset. Pa…rpress_pre_setup_discountFires before the RPRESS_Discount object is set up. Fires in RPRESS_Discount::setup_discount() before the object propert…rpress_pre_setup_paymentFires while an RPRESS_Payment object is being set up, before its properties are loaded. Runs in RPRESS_Payment::setup_p…rpress_pre_set_user_to_activeFires before a pending user is marked as verified. Runs in rpress_set_user_to_verified() after confirming the user is s…rpress_pre_set_user_to_pendingFires before a user is marked as pending verification. Runs in rpress_set_user_to_pending() after the user ID is checke…rpress_pre_update_discountFires before a discount is updated in the database. Fires in RPRESS_Discount::update() after the meta has been filtered…rpress_pre_update_discount_statusFires before the status of a discount is updated. Fires in RPRESS_Discount::update_status() before the post status is c…rpress_pre_update_logFires before a log entry is updated. Runs at the start of RPRESS_Logging::update_log(), before the arguments are merged…rpress_pre_update_user_profileFires before a customer's profile is updated from the profile editor. Runs in rpress_process_profile_editor_updates() a…rpress_print_errorsFires at the top of the registration form to print queued error messages. Runs in the registration shortcode before the…rpress_process_register_formFires after the built-in registration field checks, before the account is created. Runs in rpress_process_register_form…rpress_product_details_widget_before_categories_and_tagsFires before the categories and tags in the menu item details widget. Runs after the purchase button and before the cat…rpress_product_details_widget_before_endFires at the end of the menu item details widget. Runs after the category and tag list and before the closing widget ma…rpress_product_details_widget_before_purchase_buttonFires before the purchase button in the menu item details widget. Runs after the menu item title and before the purchas…rpress_product_details_widget_before_titleFires after the title and before the item name in the menu item details widget. Runs in the menu item details widget ou…rpress_product_details_widget_formFires at the end of the menu item details widget settings form. Runs in the widget form() method in the admin after the…rpress_product_details_widget_updateFires while the menu item details widget settings are being saved. Runs in the widget update() method after the standar…rpress_profile_editor_addressFires after the state field in the profile editor billing address. Runs inside the state paragraph of the billing addre…rpress_profile_editor_afterFires after the profile editor form. Runs after the form closes, for logged-in users. Example add_action( 'rpress_profi…rpress_profile_editor_after_addressFires after the billing address fields in the profile editor. Runs at the end of the billing address fieldset, after th…rpress_profile_editor_after_address_fieldsFires after the billing address fieldset in the profile editor. Runs between the billing address fieldset and the passw…rpress_profile_editor_after_emailFires after the email fields in the profile editor. Runs after the primary and additional email blocks, at the end of t…rpress_profile_editor_after_nameFires after the display name field wrapper in the profile editor. Runs after the display name paragraph and before the…rpress_profile_editor_after_passwordFires after the password fields in the profile editor. Runs at the end of the password fieldset, after the confirm pass…rpress_profile_editor_after_password_fieldsFires after the password fieldset in the profile editor. Runs between the password fieldset and the submit fieldset. Ex…rpress_profile_editor_after_personal_fieldsFires after the personal information fieldset in the profile editor. Runs between the personal information fieldset and…rpress_profile_editor_beforeFires before the profile editor form. Runs in the profile editor shortcode after error messages and before the form ope…rpress_profile_editor_emailFires after the primary email field in the profile editor. Runs inside the primary email paragraph after the email inpu…rpress_profile_editor_fields_bottomFires at the bottom of the profile editor form, after the submit button. Runs inside the form after the submit fieldset…rpress_profile_editor_fields_topFires at the top of the profile editor form. Runs just inside the profile editor form tag, before the name fieldset. Fi…rpress_profile_editor_logged_outFires in the profile editor shortcode when the visitor is logged out. Runs in place of the profile editor for a logged-…rpress_profile_editor_nameFires after the display name field in the profile editor. Runs inside the display name paragraph, immediately after the…rpress_profile_editor_passwordFires after the confirm password field in the profile editor. Runs inside the confirm password paragraph after its inpu…rpress_purchase_formFires to render the purchase form fields inside the checkout form. Runs in rpress_checkout_form() after rpress_checkout…rpress_purchase_form_after_cc_formFires after the credit card form is output. Runs at the end of rpress_show_cc_form(). Core hooks the billing tax addres…rpress_purchase_form_after_emailFires after the email field in the checkout contact section. Runs in rpress_user_info_fields() after the email field an…rpress_purchase_form_after_submitFires after the place order button. Runs in rpress_checkout_submit() right after the purchase button and before the opt…rpress_purchase_form_after_user_infoFires to render the contact and order details sections of the checkout form. Runs in rpress_show_purchase_form() when t…rpress_purchase_form_before_cc_formFires before the credit card form is output. Runs in rpress_show_cc_form() before the gateway card form. That function…rpress_purchase_form_before_emailFires before the email field in the checkout contact section. Runs in rpress_user_info_fields() inside the contact fiel…rpress_purchase_form_before_order_detailsFires before the address fields of the checkout order details section. Runs in rpress_order_details_fields() right afte…rpress_purchase_form_before_register_loginFires before the login and register options are shown to a guest. Runs in rpress_show_purchase_form() when guests must…rpress_purchase_form_before_submitFires before the checkout submit section. Runs at the start of rpress_checkout_submit(). Core hooks rpress_print_errors…rpress_purchase_form_bottomFires at the bottom of the purchase form section. Runs at the end of rpress_show_purchase_form(), after the login optio…rpress_purchase_form_login_fieldsFires when the checkout login fields are rendered. Fires inside the checkout_login AJAX handler, which loads the login…rpress_purchase_form_no_accessFires when the visitor is not allowed to check out. Runs in rpress_show_purchase_form() when rpress_can_checkout() retu…rpress_purchase_form_order_detailsFires after the order note field in the checkout order details section. Runs at the end of rpress_order_details_fields(…rpress_purchase_form_order_details_fieldsFires last in the checkout order details section. Runs in rpress_order_details_fields() after rpress_purchase_form_orde…rpress_purchase_form_register_fieldsFires when the checkout registration fields are rendered via AJAX. Fires inside the checkout_register AJAX handler, whi…rpress_purchase_form_topFires at the top of the purchase form section. Runs at the start of rpress_show_purchase_form(), before the login optio…rpress_purchase_form_user_infoFires at the end of the checkout contact fields and the registration fields. Runs after the standard fields are output…rpress_purchase_form_user_info_fieldsFires after the checkout contact fields have been output. Runs in rpress_user_info_fields() after rpress_purchase_form_…rpress_purchase_form_user_register_fieldsFires at the end of the registration block on the checkout form. Runs in rpress_get_register_fields() after rpress_purc…rpress_purchase_link_endFires at the end of a menu item purchase form. Runs just before the closing form tag of the purchase link, after the hi…rpress_purchase_link_topFires at the top of a menu item purchase form. Runs inside the opening form tag of the purchase link, before the submit…rpress_purchase_login_optionsFires to render the login and register choices when an account is required. Runs in rpress_show_purchase_form() for log…rpress_purchase_receipt_after_qantity_tableFires inside the quantity cell for each add-on item in the order list email tag. Runs once per add-on item of a cart li…rpress_purchase_receipt_after_tableFires after the closing tag of the order items table in the order list email tag. Runs once the order items table has b…rpress_purchase_receipt_after_tax_tableFires after the tax row of the order items table in the order list email tag. Runs after the tax name and amount row ha…rpress_purchase_receipt_before_tax_tableFires before the tax row of the order items table in the order list email tag. Runs when taxes are enabled (rpress_use_…rpress_realtime_publish_errorFires when publishing a realtime order status event fails. Runs in RPRESS_Realtime::broadcast_order_status() when the r…rpress_recount_tool_descriptionsFires inside the repair tool description area to add help text for extra options. Runs in the description container of…rpress_recount_tool_optionsFires inside the repair tool dropdown to add extra options. Runs inside the select element of the Repair Restaurant Sta…rpress_register_account_fields_afterFires at the end of the account creation fieldset. Runs in rpress_get_register_fields() after the password field, befor…rpress_register_account_fields_beforeFires at the start of the account creation fieldset. Runs in rpress_get_register_fields() inside the create-account fie…rpress_register_batch_exporterFires in the admin so extensions can register their batch exporters. Runs on plugins_loaded at priority 99, in the admi…rpress_register_batch_importerFires in the admin so extensions can register their batch importers. Runs on plugins_loaded, only when is_admin() is tr…rpress_register_fields_afterFires after the account creation fieldset in the registration block. Runs in rpress_get_register_fields() after the cre…rpress_register_fields_beforeFires before the account creation fieldset in the registration block. Runs in rpress_get_register_fields() after the "A…rpress_register_form_fields_afterFires after the submit button and sign-in link in the registration form. Runs at the end of the registration form conte…rpress_register_form_fields_beforeFires before the username field in the registration form. Runs after the optional social sign-up buttons and before the…rpress_register_form_fields_before_submitFires before the submit button in the registration form. Runs after the confirm password field and before the hidden fi…rpress_register_form_fields_bottomFires at the bottom of the registration form. Runs after the field wrapper and before the form closing tag. Example add…rpress_register_form_fields_topFires at the top of the registration form. Runs just inside the registration form tag, before the heading and fields. E…rpress_register_form_logged_inFires in the registration shortcode when the visitor is already logged in. Runs in place of the registration form when…rpress_register_template_packsFires when template packs can be registered. Runs once on init at priority 5, after the built-in Classic and Modern pac…rpress_remove_fooditem_from_paymentFires after a menu item has been removed from an order on the edit order screen. Runs once for each menu item removed w…rpress_render_receipt_in_browser_afterFires after the receipt content on the in-browser receipt page. Runs inside the receipt wrapper element on the standalo…rpress_render_receipt_in_browser_beforeFires before the receipt content on the in-browser receipt page. Runs inside the receipt wrapper element on the standal…rpress_reports_contextual_helpFires when the reports screen help tabs are loaded. Runs on the load action of the reports admin screen, only when the…rpress_reports_graph_additional_statsFires inside the stats area of the earnings graph and the category reports. Runs after the summary stat cards of the ea…rpress_reports_graph_afterFires after the earnings graph markup on the Earnings report view. Runs at the end of the earnings graph function, afte…rpress_reports_graph_beforeFires before the earnings graph markup on the Earnings report view. Runs inside the output buffer of the earnings graph…rpress_reports_page_bottomFires on the reports screen after the active tab content. Runs after the active tab content action and before the repor…rpress_reports_page_topFires on the reports screen after the tab navigation and before the tab content. Runs after the tab bar of the reports…rpress_reports_tabsFires inside the tab navigation of the reports screen, after the tab links. Runs inside the nav element of the reports…rpress_reports_tab_export_content_bottomFires at the bottom of the Export tab on the reports screen. Runs after all export cards have been printed in the Expor…rpress_reports_tab_{$active_tab}Fires to render the content of the active tab on the reports screen. Runs on the reports screen after rpress_reports_pa…rpress_reports_view_{$current_view}Fires to render the selected view in the legacy reports tab. Runs from the legacy reports tab handler with the selected…rpress_report_view_actionsFires inside the legacy report filter form, after the report type dropdown. Runs inside the report filter form, after t…rpress_report_view_actions_afterFires after the legacy report filter form. Runs right after the closing tag of the report filter form. Use it for marku…rpress_sales_summary_widget_after_purchasesFires at the end of the Sales Summary dashboard widget after the recent orders table. Runs after the recent orders tabl…rpress_sales_summary_widget_after_statsFires in the Sales Summary dashboard widget after the stats tables. Runs in the AJAX-loaded RestroPress Sales Summary w…rpress_save_fooditemFires after a menu item's editor fields have been saved. Runs at the end of the menu item save routine, once the standa…rpress_service_type_switchedFires when the storefront service toggle switches the service type. Fires in the update_modal_on_service_switch AJAX ha…rpress_settings_after_form_{$active_tab}_{$section}Fires after the settings form of a tab section, outside the form element. Runs after the closing form tag of the settin…rpress_settings_contextual_helpFires when the settings screen help tabs are loaded. Runs at the end of the settings screen contextual help setup, afte…rpress_settings_tab_bottomFires at the bottom of a settings tab for the main section, for backwards compatibility. Runs inside the settings form…rpress_settings_tab_bottom_{$active_tab}_{$section}Fires at the bottom of one section of a settings tab, after its fields. Runs inside the settings form after the fields…rpress_settings_tab_topFires at the top of a settings tab, before its fields, for the main section. Runs inside the settings form before the s…rpress_settings_tab_top_{$active_tab}_{$section}Fires at the top of one section of a settings tab, before its fields. Runs inside the settings form before the fields o…rpress_setup_discountFires after the RPRESS_Discount object is set up. Fires at the end of RPRESS_Discount::setup_discount(), after all prop…rpress_setup_paymentFires after an RPRESS_Payment object has been fully set up. Runs at the end of RPRESS_Payment::setup_payment, once all…rpress_tools_afterFires at the end of the Blocked Emails & Domains tool output. Runs immediately after rpress_tools_banned_emails_after w…rpress_tools_banned_emails_afterFires after the Blocked Emails & Domains panel is displayed. Runs after the panel markup on the Customer & Access tab o…rpress_tools_banned_emails_beforeFires before the Blocked Emails & Domains panel is displayed. Runs at the start of the Blocked Emails & Domains panel o…rpress_tools_betas_afterFires after the Enable Beta Versions panel is displayed. Runs after the panel and its save form on the Beta Versions ta…rpress_tools_betas_beforeFires before the Enable Beta Versions panel is displayed. Runs at the start of the Beta Versions panel on the Tools pag…rpress_tools_clear_doing_upgrade_afterFires after the Clear Incomplete Upgrade Notice panel is displayed. Runs after the panel markup on the Data Repair tab…rpress_tools_clear_doing_upgrade_beforeFires before the Clear Incomplete Upgrade Notice panel is displayed. Runs at the start of the Clear Incomplete Upgrade…rpress_tools_import_export_afterFires after the Import / Export tools page content is displayed. Runs after the signpost panel of the legacy Import / E…rpress_tools_import_export_beforeFires before the Import / Export tools page content is displayed. Runs at the start of the legacy Import / Export tool…rpress_tools_recount_formsFires after the repair tool form to allow extra forms to be printed. Runs inside the Repair Restaurant Stats panel dire…rpress_tools_recount_stats_afterFires after the Repair Restaurant Stats panel is displayed. Runs after the panel markup on the Data Repair tab of the T…rpress_tools_recount_stats_beforeFires before the Repair Restaurant Stats panel is displayed. Runs at the start of the Repair Restaurant Stats panel on…rpress_tools_tab_{$active_tab}Fires when a tab of the RestroPress Tools page is displayed. The dynamic part is the active tab slug taken from the tab…rpress_updated_edited_purchaseFires after an order edited in the admin has been saved. Runs at the end of the order details save routine, after the p…rpress_update_customer_email_on_user_updateFires after a customer's email is synced from an updated WordPress user. Fires in RPRESS_DB_Customers::update_customer_…rpress_update_edited_purchaseFires after cart items have been updated on the edit order screen, before the rest of the order is saved. Runs while th…rpress_update_order_statusFires after an order's status has been saved. Runs once the new status has been stored in the _order_status meta (and…rpress_update_payment_statusFires after a payment's status has been changed. Runs at the end of RPRESS_Payment::update_status, after the post was u…rpress_user_profile_updatedFires after a customer's profile has been updated successfully. Runs in rpress_process_profile_editor_updates() when th…rpress_user_verification_token_expiredFires when an account verification link is past its expiry time. Runs in rpress_validate_user_verification_token() when…rpress_user_verification_token_validatedFires after a user account has been marked as verified. Runs in rpress_process_user_account_verification() after the to…rpress_verify_paypal_ipnFires when a PayPal IPN request is received and must be verified. Runs on init when the request has the rpress-listener…rpress_view_order_details_afterFires after the order details form, at the end of the order details screen. Runs after the closing form tag inside the…rpress_view_order_details_beforeFires near the top of the order details screen to output notices for the order. The output is captured while the page i…rpress_view_order_details_billing_afterFires after the billing section of the order details screen. Runs after the billing details section, or directly after…rpress_view_order_details_billing_beforeFires after the payment details box and before the billing section of the order details screen. Runs between the paymen…rpress_view_order_details_files_afterFires after the order items section and before the notes box on the order details screen. Runs in the main column of th…rpress_view_order_details_form_bottomFires at the bottom of the order details form, before the nonce and hidden fields. Runs inside the order details form a…rpress_view_order_details_form_topFires at the top of the order details form content. Runs inside the edit order form, after the order header and summary…rpress_view_order_details_logs_innerFires at the end of the order logs box on the order details screen. Runs after the "View all orders for this customer"…rpress_view_order_details_main_afterFires after the order notes box at the end of the main column on the order details screen. Runs at the bottom of the ma…rpress_view_order_details_main_beforeFires after the customer and service section and before the order items on the order details screen. Runs in the main c…rpress_view_order_details_payment_meta_afterFires at the end of the payment details box on the order details screen. Runs after the gateway and transaction ID rows…rpress_view_order_details_payment_meta_beforeFires at the start of the payment details box on the order details screen. Runs at the top of the box that lists the or…rpress_view_order_details_sidebar_afterFires after the order logs box in the sidebar of the order details screen. Runs on the order details admin screen, insi…rpress_view_order_details_sidebar_beforeFires at the top of the order details sidebar, before the order status panel. Runs at the beginning of the sortable sid…rpress_view_order_details_totals_afterFires at the end of the order status box on the order details screen. Runs after the Recalculate Totals control inside…rpress_view_order_details_totals_beforeFires at the start of the order status box on the order details screen. Runs at the top of the order status and update…rpress_view_order_details_update_afterFires after the Save Order and delete actions on the order details screen. Runs at the end of the update box that conta…rpress_view_order_details_update_beforeFires before the Save Order and delete actions on the order details screen. Runs at the top of the update box that cont…rpress_{$action}Fires on admin_init for a request that carries an rpress-action value in POST or GET. Runs from rpress_process_actions(…rpress_{$id}Fires when a settings field of type hook is rendered. The dynamic part is the setting id prefixed with rpress_. A setti…rpress_{$key}Fires for a request that carries an rpress_action parameter, with the action name appended to the hook. A callback on i…rpress_{$payment_mode}_cc_formFires to render the card form of the selected payment gateway. Runs in rpress_show_cc_form() when the cart total is gre…rp_ajax_{$action}Fires to run a RestroPress frontend AJAX request. Runs in RP_AJAX::do_rp_ajax() when the request has an rp-ajax query a…rp_get_categoriesFires to print the category menu in the menu list templates. Runs in the fooditem and list menu templates. Core hooks g…wpml_switch_languageCalls WPML's action to switch the active language. RestroPress fires this WPML action to switch to the order's language…wp_loginFires the WordPress core wp_login action when RestroPress logs a user in. rpress_log_user_in sets the auth cookie and c…wp_session_cleanupFires at the end of the scheduled session garbage collection. Runs from wp_session_cleanup after expired session rows h…wp_session_commitFires after session data has been written at the end of the request. Runs from wp_session_write_close, which is attache…wp_session_startFires after the bundled WP_Session library has started or resumed a session. Runs from wp_session_start, which is attac…
Was this page helpful?
