RestaurantPress 1.8.1 has 73 actions and 140 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when RestaurantPress fires an action
add_action( 'restaurantpress_after_main_content', function() {
// Your code runs here.
}, 10, 1 );
// Change a value RestaurantPress is about to use
add_filter( 'restaurantpress_admin_settings_sanitize_option', function( $value, $option, $raw_value ) {
// Change $value here.
return $value;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Hook: restaurantpress_after_main_content. */ do_action( 'restaurantpress_after_main_content' ); -
/** * Hook: restaurantpress_before_main_content. */ do_action( 'restaurantpress_before_main_content' ); -
/** * Hook: restaurantpress_sidebar. */ do_action( 'restaurantpress_sidebar' ); -
/** * Sanitize the value of an option. */ apply_filters( 'restaurantpress_admin_settings_sanitize_option', $value, $option, $raw_value ); -
/** * Sanitize the value of an option by option name. */ apply_filters( "restaurantpress_admin_settings_sanitize_option_{$option_name}", $value, $option, $raw_value ); -
/** * restaurantpress_after_single_food_summary hook. */ do_action( 'restaurantpress_after_single_food_summary' ); -
/** * Hook: restaurantpress_archive_description. */ do_action( 'restaurantpress_archive_description' ); -
/** * restaurantpress_before_single_food hook. */ do_action( 'restaurantpress_before_single_food' ); -
/** * restaurantpress_before_single_food_summary hook. */ do_action( 'restaurantpress_before_single_food_summary' ); -
/** * Filter tabs and allow third parties to add their own. */ apply_filters( 'restaurantpress_food_tabs', array() ); -
/** * Filter translated strings prepared for TinyMCE. */ apply_filters( 'restaurantpress_mce_translations', $mce_translation ); -
/** * Hook: restaurantpress_no_foods_found. */ do_action( 'restaurantpress_no_foods_found' ); -
/** * Queued jsfilter. */ apply_filters( 'restaurantpress_queued_js', $js ); -
/** * restaurantpress_single_food_summary hook. */ do_action( 'restaurantpress_single_food_summary' ); -
/** * Sanitize the value of a setting. */ apply_filters( 'restaurantpress_widget_settings_sanitize_option', $instance[ $key ], $new_instance, $key, $setting ); -
/** * Filters the string of price markup. */ apply_filters( 'rp_price', $return, $price, $args, $unformatted_price ); -
apply_filters( "{$this->identifier}_cron_interval", 5 ); -
do_action( 'restaurantpress_after_food_loop_item', $food, 'grid_image' ); -
apply_filters( 'restaurantpress_cached_widget_id', $this->widget_id ); -
apply_filters( 'restaurantpress_food_thumbnails_large_size', 'full' ); -
apply_filters( 'restaurantpress_short_description', $raw_string ); -
apply_filters( "restaurantpress_add_{$notice_type}", $message ); -
apply_filters( 'restaurantpress_add_message', $message ); -
apply_filters( 'restaurantpress_chef_badge', '<span class="chef small"><p class="screen-reader-text">' . esc_html__( 'Chef!', 'restaurantpress' ) . '</p></span>', $post, $food ); -
apply_filters( "restaurantpress_get_sections_{$this->id}", $sections ); -
apply_filters( "restaurantpress_get_settings_{$this->id}", $settings, $current_section ); -
apply_filters( 'restaurantpress_session_handler', 'RP_Session_Handler' ); -
{!==$current_section?}restaurantpress_save_settings_{$current_tab}_{$current_section}{:}restaurantpress_save_settings_{$current_tab}
filter Copy link Customise this hookapply_filters( "{!==$current_section?}restaurantpress_save_settings_{$current_tab}_{$current_section}{:}restaurantpress_save_settings_{$current_tab}", ! empty( $_POST ) ); -
apply_filters( "{$shortcode}_shortcode_tag", $shortcode ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
do_action( 'before_restaurantpress_init' ); -
do_action( 'deprecated_argument_run', $argument, $message, $version ); -
do_action( 'deprecated_function_run', $function, $replacement, $version ); -
do_action( 'deprecated_hook_run', $hook, $replacement, $version, $message ); -
do_action( 'doing_it_wrong_run', $function, $message, $version ); -
apply_filters( 'food_cat_class', $classes, $class, $category ); -
apply_filters( 'formatted_restaurantpress_price', number_format( $price, $decimals, $decimal_separator, $thousand_separator ), $price, $decimals, $decimal_separator, $thousand_separator ); -
apply_filters( 'https_local_ssl_verify', false ); -
apply_filters( 'is_restaurantpress', ( is_post_type_archive( 'food_menu' ) || is_food_menu_taxonomy() || is_food_menu() ) ? true : false ); -
apply_filters( 'plugin_locale', $locale, 'restaurantpress' ); -
apply_filters( 'raw_restaurantpress_price', floatval( $negative ? $price * -1 : $price ) ); -
apply_filters( 'restaurant_single_food_image_thumbnail_html', $html, $attachment_id ); -
do_action( "restaurantpress_admin_field_{$value['type']}", $value ); -
do_action( 'restaurantpress_admin_list_tables_setup_screen', $screen_id ); -
do_action( 'restaurantpress_after_register_post_type' ); -
do_action( 'restaurantpress_after_register_taxonomy' ); -
do_action( 'restaurantpress_after_template_part', $template_name, $template_path, $located, $args ); -
apply_filters( 'restaurantpress_background_image_regeneration', true ); -
do_action( 'restaurantpress_before_template_part', $template_name, $template_path, $located, $args ); -
do_action( 'restaurantpress_caught_exception', $exception_object, $function, $args ); -
do_action( 'restaurantpress_contact' ); -
apply_filters( 'restaurantpress_cookie', 'wp_restaurantpress_session_' . COOKIEHASH ); -
apply_filters( 'restaurantpress_cookie_httponly', false, $name, $value, $expire, $secure ); -
apply_filters( 'restaurantpress_currencies', array( 'AED' => __( 'United Arab Emirates dirham', 'restaurantpress' ), 'AFN' => __( 'Afghan afghani', 'restaurantpress' ), 'ALL' => __( 'Albanian lek', 'restaurantpress' ), 'AMD' => __( 'Armenian dram', 'restaurantpress' ), 'ANG' => __( 'Netherlands Antillean guilder', 'restaurantpress' ), 'AOA' => __( 'Angolan kwanza', 'restaurantpress' ), 'ARS' => __( 'Argentine peso', 'restaurantpress' ), '... ); -
apply_filters( 'restaurantpress_currency', get_option( 'restaurantpress_currency' ) ); -
apply_filters( 'restaurantpress_currency_symbol', $currency_symbol, $currency ); -
apply_filters( 'restaurantpress_currency_symbols', array( 'AED' => 'د.إ', 'AFN' => '؋', 'ALL' => 'L', 'AMD' => 'AMD', 'ANG' => 'ƒ', 'AOA' => 'Kz', 'ARS' => '$', 'AUD' => '$', 'AWG' => 'Afl.', 'AZN' => 'AZN', 'BAM' => 'KM', 'BBD' => '$', 'BDT' => '৳ ', 'BGN' => 'лв.', 'BHD' => '.د.ب', 'BIF' => 'Fr', 'BMD' => '$', 'BND' => '$', 'BOB' => 'Bs.', 'BRL' => 'R$', 'BS... ); -
apply_filters( 'restaurantpress_date_format', get_option( 'date_format' ) ); -
apply_filters( 'restaurantpress_default_catalog_orderby', get_option( 'restaurantpress_default_catalog_orderby', 'menu_order' ) ); -
apply_filters( 'restaurantpress_docs_url', 'https://docs.wpeverest.com/docs/restaurantpress/' ); -
apply_filters( 'restaurantpress_empty_price_html', '', $this ); -
apply_filters( 'restaurantpress_enable_auto_update_db', false ); -
apply_filters( 'restaurantpress_enable_setup_wizard', self::is_new_install() ); -
apply_filters( 'restaurantpress_enqueue_styles', array( 'restaurantpress-layout' => array( 'src' => self::get_asset_url( 'assets/css/restaurantpress-layout.css' ), 'deps' => '', 'version' => RP_VERSION, 'media' => 'all', 'has_rtl' => true, ), 'restaurantpress-smallscreen' => array( 'src' => self::get_asset_url( 'assets/css/restaurantpress-smallscreen.css' ), 'deps' => 'restaurantpress-layout', 'version' => RP_VERSION, 'media' => 'only screen ... ); -
apply_filters( 'restaurantpress_extensions_section_data', $section_data->products, $section_id ); -
apply_filters( 'restaurantpress_extensions_sections', $extension_sections ); -
do_action( 'restaurantpress_flush_rewrite_rules' ); -
apply_filters( "restaurantpress_food_{$key}_tab_title", esc_html( $tab['title'] ), $key ); -
do_action( 'restaurantpress_food_data_panels' ); -
apply_filters( 'restaurantpress_food_data_tabs', array( 'general' => array( 'label' => __( 'General', 'restaurantpress' ), 'target' => 'general_food_data', 'class' => array(), 'priority' => 10, ), ) ); -
apply_filters( 'restaurantpress_food_description_heading', __( 'Description', 'restaurantpress' ) ); -
apply_filters( 'restaurantpress_food_get_image', rp_get_relative_url( $image ), $this, $size, $attr, $placeholder ); -
do_action( 'restaurantpress_food_group_write_panel_tabs' ); -
apply_filters( 'restaurantpress_food_is_chef_enable', 'yes' === $this->get_chef_badge() ); -
apply_filters( 'restaurantpress_food_loop_end', ob_get_clean() ); -
apply_filters( 'restaurantpress_food_loop_start', ob_get_clean() ); -
do_action( 'restaurantpress_food_options_general' ); -
do_action( 'restaurantpress_food_options_pricing' ); -
do_action( 'restaurantpress_food_query', $q, $this ); -
apply_filters( 'restaurantpress_food_query_meta_query', $meta_query, $this ); -
apply_filters( 'restaurantpress_food_query_tax_query', $tax_query, $this ); -
apply_filters( 'restaurantpress_food_short_description_editor_settings', $settings ); -
do_action( 'restaurantpress_food_thumbnails' ); -
apply_filters( 'restaurantpress_food_thumbnails_columns', 4 ); -
do_action( 'restaurantpress_food_write_panel_tabs' ); -
apply_filters( 'restaurantpress_form_field', $args, $key, $value ); -
apply_filters( "restaurantpress_form_field_{$args['type']}", $field, $key, $args, $value ); -
apply_filters( 'restaurantpress_format_content', apply_filters( 'restaurantpress_short_description', $raw_string ), $raw_string ); -
apply_filters( 'restaurantpress_format_localized_price', str_replace( '.', rp_get_price_decimal_separator(), strval( $value ) ), $value ); -
apply_filters( 'restaurantpress_format_sale_price', $price, $regular_price, $sale_price ); -
apply_filters( 'restaurantpress_general_settings', array( array( 'title' => __( 'Currency options', 'restaurantpress' ), 'type' => 'title', 'desc' => __( 'The following options affect how prices are displayed on the frontend.', 'restaurantpress' ), 'id' => 'pricing_options', ), array( 'title' => __( 'Currency', 'restaurantpress' ), 'desc' => __( 'This controls what currency prices are listed at in the menu catalog.', 'restaurantpress' ), 'id' =... ); -
apply_filters( 'restaurantpress_get_asset_url', plugins_url( $path, RP_PLUGIN_FILE ), $path ); -
apply_filters( 'restaurantpress_get_catalog_ordering_args', $args ); -
apply_filters( "restaurantpress_get_image_size_{$image_size}", $size ); -
apply_filters( 'restaurantpress_get_plugins_for_restaurantpress', $matches, $plugins ); -
apply_filters( 'restaurantpress_get_plugins_with_header', $matches, $header, $plugins ); -
apply_filters( 'restaurantpress_get_price_html', $price, $this ); -
apply_filters( 'restaurantpress_get_price_suffix', $html, $this, $price ); -
apply_filters( 'restaurantpress_get_query_vars', $this->query_vars ); -
apply_filters( 'restaurantpress_get_script_data', $params, $handle ); -
apply_filters( 'restaurantpress_get_settings_pages', $settings ); -
do_action( 'restaurantpress_group_data_panels' ); -
apply_filters( 'restaurantpress_group_data_tabs', array( 'general' => array( 'label' => __( 'General', 'restaurantpress' ), 'target' => 'general_group_data', 'class' => array( 'hide_if_grouped' ), ), 'grouping' => array( 'label' => __( 'Grouping', 'restaurantpress' ), 'target' => 'grouping_group_data', 'class' => 'grouping_group_data', ), ) ); -
do_action( 'restaurantpress_group_options_general' ); -
do_action( 'restaurantpress_group_options_save', $post_id ); -
do_action( 'restaurantpress_helper_output' ); -
do_action( "restaurantpress_hide_{$hide_notice}_notice" ); -
apply_filters( 'restaurantpress_image_sizes_to_resize', array( 'restaurantpress_thumbnail', 'restaurantpress_single', 'food_grid', 'food_thumbnail', 'food_single' ), true ); -
do_action( 'restaurantpress_init' ); -
do_action( 'restaurantpress_installed' ); -
apply_filters( 'restaurantpress_integration_description', $this->method_description, $this ); -
apply_filters( 'restaurantpress_integration_title', $this->method_title, $this ); -
apply_filters( 'restaurantpress_integrations', array() ); -
do_action( 'restaurantpress_integrations_init' ); -
apply_filters( 'restaurantpress_is_shortcodes_enabled', is_a( $post, 'WP_Post' ) && 'food_menu' !== $post_type ); -
apply_filters( 'restaurantpress_json_search_found_categories', $found_categories ); -
do_action( 'restaurantpress_loaded' ); -
apply_filters( 'restaurantpress_locate_template', $template, $template_name, $template_path ); -
apply_filters( 'restaurantpress_loop_food_image_thumbnail_html', $html, get_post_thumbnail_id( $post->ID ) ); -
apply_filters( 'restaurantpress_notice_types', array( 'error', 'success', 'notice' ) ); -
apply_filters( 'restaurantpress_page_title', $page_title ); -
apply_filters( 'restaurantpress_pagination_args', array( 'base' => $base, 'format' => $format, 'add_args' => false, 'current' => max( 1, $current ), 'total' => $total, 'prev_text' => '←', 'next_text' => '→', 'type' => 'list', 'end_size' => 3, 'mid_size' => 3, ) ); -
apply_filters( 'restaurantpress_placeholder_img', '<img src="' . rp_placeholder_img_src() . '" alt="' . esc_attr__( 'Placeholder', 'restaurantpress' ) . '" width="' . esc_attr( $dimensions['width'] ) . '" class="restaurantpress-placeholder wp-post-image" height="' . esc_attr( $dimensions['height'] ) . '" />', $size, $dimensions ); -
apply_filters( 'restaurantpress_placeholder_img_src', RP()->plugin_url() . '/assets/images/placeholder.png' ); -
apply_filters( 'restaurantpress_price_format', $format, $currency_pos ); -
apply_filters( 'restaurantpress_price_trim_zeros', false ); -
apply_filters( 'restaurantpress_print_r_alternatives', $alternatives, $expression ); -
do_action( "restaurantpress_process_{$post->post_type}_meta", $post_id, $post ); -
do_action( 'restaurantpress_product_meta_end' ); -
do_action( 'restaurantpress_product_meta_start' ); -
apply_filters( 'restaurantpress_regenerate_images_intermediate_image_sizes', array( 'restaurantpress_thumbnail', 'restaurantpress_thumbnail_2x', 'restaurantpress_single' ) ); -
do_action( 'restaurantpress_register_post_type' ); -
apply_filters( 'restaurantpress_register_post_type_food_group', array( 'labels' => array( 'name' => __( 'Groups', 'restaurantpress' ), 'singular_name' => __( 'Group', 'restaurantpress' ), 'menu_name' => _x( 'Groups', 'Admin menu name', 'restaurantpress' ), 'add_new' => __( 'Add Group', 'restaurantpress' ), 'add_new_item' => __( 'Add New Group', 'restaurantpress' ), 'edit' => __( 'Edit', 'restaurantpress' ), 'edit_item' => __( 'Edit Group', 'restaurantpress'... ); -
do_action( 'restaurantpress_register_taxonomy' ); -
apply_filters( 'restaurantpress_resize_images', true ); -
apply_filters( 'restaurantpress_screen_ids', $screen_ids ); -
do_action( "restaurantpress_sections_{$current_tab}" ); -
do_action( "restaurantpress_settings_{$current_tab}" ); -
do_action( "restaurantpress_settings_{sanitize_title($value['id'])}" ); -
do_action( "restaurantpress_settings_{sanitize_title($value['id'])}_after" ); -
do_action( "restaurantpress_settings_{sanitize_title($value['id'])}_end" ); -
apply_filters( "restaurantpress_settings_api_form_fields_{$this->id}", array_map( array( $this, 'set_defaults' ), $this->form_fields ) ); -
apply_filters( "restaurantpress_settings_api_sanitized_fields_{$this->id}", $this->settings ); -
apply_filters( "restaurantpress_settings_form_method_tab_{$current_tab}", 'post' ); -
do_action( "restaurantpress_settings_save_{$current_tab}" ); -
do_action( 'restaurantpress_settings_saved' ); -
do_action( 'restaurantpress_settings_start' ); -
do_action( 'restaurantpress_settings_tabs' ); -
apply_filters( 'restaurantpress_settings_tabs_array', array() ); -
do_action( "restaurantpress_shortcode_after_{$loop_name}_loop" ); -
do_action( "restaurantpress_shortcode_before_{$loop_name}_loop" ); -
apply_filters( 'restaurantpress_show_admin_notice', true, $notice ); -
apply_filters( 'restaurantpress_show_extensions_page', true ); -
apply_filters( 'restaurantpress_show_page_title', true ); -
apply_filters( 'restaurantpress_single_food_carousel_options', array( 'rtl' => is_rtl(), 'animation' => 'slide', 'smoothHeight' => true, 'directionNav' => false, 'controlNav' => 'thumbnails', 'slideshow' => false, 'animationSpeed' => 500, 'animationLoop' => false, 'allowOneSlide' => false, ) ); -
apply_filters( 'restaurantpress_single_food_flexslider_enabled', 'yes' === get_option( 'restaurantpress_enable_gallery_slider' ) ? 1 : 0 ); -
apply_filters( 'restaurantpress_single_food_image_gallery_classes', array( 'restaurantpress-food-gallery', 'restaurantpress-food-gallery--' . $placeholder, 'restaurantpress-food-gallery--columns-' . absint( $columns ), 'images', ) ); -
apply_filters( 'restaurantpress_single_food_image_thumbnail_html', $html, get_post_thumbnail_id( $post->ID ) ); -
apply_filters( 'restaurantpress_single_food_photoswipe_enabled', 'yes' === get_option( 'restaurantpress_enable_gallery_lightbox' ) ? 1 : 0 ); -
apply_filters( 'restaurantpress_single_food_photoswipe_options', array( 'shareEl' => false, 'closeOnScroll' => false, 'history' => false, 'hideAnimationDuration' => 0, 'showAnimationDuration' => 0, ) ); -
apply_filters( 'restaurantpress_single_food_zoom_enabled', 'yes' === get_option( 'restaurantpress_enable_gallery_zoom' ) ? 1 : 0 ); -
apply_filters( 'restaurantpress_single_food_zoom_options', array() ); -
apply_filters( 'restaurantpress_style_smallscreen_breakpoint', '768px' ); -
apply_filters( 'restaurantpress_support_url', 'https://wpeverest.com/support-forum/' ); -
apply_filters( 'restaurantpress_template_loader_files', array(), $default_file ); -
apply_filters( 'restaurantpress_template_path', 'restaurantpress/' ); -
apply_filters( 'restaurantpress_theme_slug_for_templates', get_option( 'template' ) ); -
apply_filters( 'restaurantpress_time_format', get_option( 'time_format' ) ); -
apply_filters( 'restaurantpress_twenty_seventeen_styles', $styles ); -
do_action( 'restaurantpress_update_options' ); -
do_action( "restaurantpress_update_options_{$current_tab}" ); -
do_action( "restaurantpress_update_options_{$this->id}_{$current_section}" ); -
do_action( 'restaurantpress_updated' ); -
do_action( "restaurantpress_widget_field_{$setting['type']}", $key, $value, $setting, $instance ); -
do_action( "rp_ajax_{sanitize_text_field($action)}" ); -
apply_filters( 'rp_get_price_decimal_separator', get_option( 'restaurantpress_price_decimal_sep' ) ); -
apply_filters( 'rp_get_price_decimals', get_option( 'restaurantpress_price_num_decimals', 2 ) ); -
apply_filters( 'rp_get_price_thousand_separator', get_option( 'restaurantpress_price_thousand_sep' ) ); -
apply_filters( 'rp_get_template', $located, $template_name, $args, $template_path, $default_path ); -
apply_filters( 'rp_get_template_part', $template, $slug, $name ); -
apply_filters( 'rp_price_args', wp_parse_args( $args, array( 'currency' => '', 'decimal_separator' => rp_get_price_decimal_separator(), 'thousand_separator' => rp_get_price_thousand_separator(), 'decimals' => rp_get_price_decimals(), 'price_format' => get_restaurantpress_price_format(), ) ) ); -
apply_filters( 'rp_session_expiration', 60 * 60 * 48 ); -
apply_filters( 'rp_session_expiring', 60 * 60 * 47 ); -
apply_filters( 'rp_session_use_secure_cookie', false ); -
apply_filters( 'single_food_archive_thumbnail_size', $size ); -
apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); -
do_action( "wp_{get_current_blog_id()}_rp_updater_cron" );
Generated from RestaurantPress's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: