Food Online for WooCommerce 6.1.1 has 36 actions and 41 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 Food Online for WooCommerce fires an action
add_action( 'fdoe_product_options_order_item_meta_added', function( $item, $values ) {
// Your code runs here.
}, 10, 2 );
// Change a value Food Online for WooCommerce is about to use
add_filter( 'fdoe_product_options_line_text', function( $implode, $line, $product ) {
// Change $implode here.
return $implode;
}, 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
-
/** * Filters the readable text of one option group on a cart or order line. */ apply_filters( 'fdoe_product_options_line_text', implode( ', ', $parts ), $line, $product ); -
/** * Filters the visible order item meta written for the chosen options (key => * text). Return e.g. array( 'Options' => '...' ) for a tool that only reads * one field, or an empty array to keep only the hidden data. */ apply_filters( 'fdoe_product_options_order_item_meta', $meta, $values[ self::CART_KEY ]['lines'], $item, $values ); -
/** * Fires after the chosen options are added to an order item (before the order * is saved). */ do_action( 'fdoe_product_options_order_item_meta_added', $item, $values[ self::CART_KEY ] ); -
woocommerce_before_single_product_summary
action Used by 25 plugins → Copy link Customise this hook/** * Hook: woocommerce_before_single_product_summary. */ do_action( 'woocommerce_before_single_product_summary' ); -
/** * Hook: woocommerce_single_product_summary. */ do_action( 'woocommerce_single_product_summary' ); -
apply_filters( 'fdoe_section1_settings', $this->get_blocks_overview_settings() ); -
do_action( 'fdoe_loop_end_3' ); -
apply_filters( 'wpml_object_id', $cat_id, 'product_cat', true ); -
apply_filters( 'woocommerce_cart_item_remove_link', '<span class="mini-cart2">' . sprintf('<a href="%s" class=" remove_from_cart_button fdoe_remove" aria-label="%s" data-product_id="%s" data-cart_item_key="%s" data-product_sku="%s"><i class="fas fa-times-circle fa-lg" style="color:Tomato"></i></a></span>', esc_url(wc_get_cart_remove_url($cart_item_key)), esc_attr__('Remove this item', 'woocommerce'), esc_attr($product_id), esc_attr($cart_item_ke... ); -
apply_filters( 'woocommerce_sale_flash', '<span class="onsale">' . esc_html__( 'Sale!', 'woocommerce' ) . '</span>', '', $product ); -
do_action( 'fdoe_before_foodonline2_loop' ); -
do_action( 'fdoe_loop_end_2' ); -
do_action( 'fdoe_loop_start' ); -
do_action( 'fdoe_loop_start_2' ); -
do_action( 'fdoe_output_rightbar' ); -
do_action( 'fdoe_woocommerce_widget_shopping_cart_buttons' ); -
apply_filters( 'woocommerce_add_to_cart_product_id', absint(sanitize_text_field($_POST['p_id'])) ); -
do_action( 'woocommerce_after_mini_cart' ); -
do_action( 'woocommerce_before_mini_cart' ); -
do_action( 'woocommerce_before_mini_cart_contents' ); -
apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink($cart_item) : '', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price($_product), $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key ); -
do_action( 'woocommerce_mini_cart_contents' ); -
apply_filters( 'woocommerce_widget_cart_item_quantity', '<span class="mini-cart-quantity">' . sprintf('%s ', $item_total) . '</span>', $cart_item, $cart_item_key ); -
apply_filters( 'woocommerce_widget_cart_item_visible', true, $cart_item, $cart_item_key ); -
woocommerce_widget_shopping_cart_before_buttons
action Used by 28 plugins → Copy link Customise this hookdo_action( 'woocommerce_widget_shopping_cart_before_buttons' ); -
apply_filters( 'fdoe_activate_yith_totals', true ); -
do_action( 'fdoe_before_product_modal' ); -
apply_filters( 'fdoe_classic_options_open_max', 6, $product ); -
apply_filters( 'fdoe_is_shortcode_delivery', self::$is_shortcode_delivery ); -
apply_filters( 'fdoe_is_shortcode_minicart', self::$is_shortcode_minicart ); -
apply_filters( 'fdoe_is_shortcode_topbar', self::$is_shortcode_topbar ); -
do_action( 'fdoe_loop_end_1' ); -
apply_filters( 'fdoe_loop_products', $data ); -
apply_filters( 'fdoe_loop_single_item', $item, $product ); -
apply_filters( 'fdoe_next_page', $next_page ); -
apply_filters( 'fdoe_section2_settings', array( array( 'name' => __( 'Shop Menu Categories', 'food-online-for-woocommerce' ), 'type' => 'title', 'desc' => __( 'This category ordering is used by the classic Food Online shop-page/default menu renderer. Leave the manual list empty to fall back to the default category order. When the manual list contains categories, the shop page uses that list as the category selection and order. These s... ); -
do_action( 'fdoe-content-single-product-clean' ); -
do_action( 'fdoe-content-single-product-summary' ); -
do_action( 'wc_quick_view_enqueue_scripts' ); -
apply_filters( 'woocommerce_add_cart_item_data', $cart_item_data, $product_id, $variation_id, $product_quantity_new ); -
apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ); -
woocommerce_add_to_cart_sold_individually_found_in_cart
filter Used by 6 plugins → Copy link Customise this hookapply_filters( 'woocommerce_add_to_cart_sold_individually_found_in_cart', $cart_item_key && WC()->cart->cart_contents[ $cart_item_key ]['quantity'] > 0, $product_id, $variation_id, $cart_item_data, $cart_id ); -
woocommerce_add_to_cart_sold_individually_quantity
filter Used by 4 plugins → Copy link Customise this hookapply_filters( 'woocommerce_add_to_cart_sold_individually_quantity', 1, $product_quantity_new, $product_id, $variation_id, $cart_item_data ); -
apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id, $variation ); -
do_action( 'woocommerce_after_add_to_cart_button' ); -
do_action( 'woocommerce_after_add_to_cart_form' ); -
do_action( 'woocommerce_after_add_to_cart_quantity' ); -
do_action( 'woocommerce_ajax_added_to_cart', $product_id ); -
do_action( 'woocommerce_before_add_to_cart_button' ); -
do_action( 'woocommerce_before_add_to_cart_form' ); -
do_action( 'woocommerce_before_add_to_cart_quantity' ); -
do_action( 'woocommerce_calculate_totals' ); -
apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); -
apply_filters( 'woocommerce_cart_item_variation_id', $cart_item['variation_id'], $cart_item, $cart_item_key ); -
apply_filters( "woocommerce_get_sections_{$this->id}", $this->get_section_definitions() ); -
apply_filters( "woocommerce_get_settings_{$this->id}", $settings, $current_section ); -
woocommerce_product_review_comment_form_args
filter Used by 17 plugins → Copy link Customise this hookapply_filters( 'woocommerce_product_review_comment_form_args', $comment_form ); -
apply_filters( 'woocommerce_product_thumbnails_columns', 4 ); -
apply_filters( 'woocommerce_quantity_input_classes', array( 'input-text', 'qty', 'text','fdoe_disabled_input' ), $_product ); -
do_action( 'woocommerce_shipping_init' ); -
woocommerce_single_product_image_gallery_classes
filter Used by 51 plugins → Copy link Customise this hookapply_filters( 'woocommerce_single_product_image_gallery_classes', array( 'woocommerce-product-gallery', 'woocommerce-product-gallery--' . ( $product->get_image_id() ? 'with-images' : 'without-images' ), 'woocommerce-product-gallery--columns-' . absint( $columns ), 'images', ) ); -
woocommerce_single_product_image_thumbnail_html
filter Used by 65 plugins → Copy link Customise this hookapply_filters( 'woocommerce_single_product_image_thumbnail_html', $html, $post_thumbnail_id ); -
do_action( 'woocommerce_single_product_summary_add_fdoe' ); -
do_action( 'woocommerce_single_product_summary_image_fdoe' ); -
do_action( 'woocommerce_single_product_summary_price_fdoe' ); -
apply_filters( 'woocommerce_stock_amount_cart_item', wc_stock_amount(preg_replace('/[^0-9\.]/', '', filter_var($_POST['quantity'], FILTER_SANITIZE_NUMBER_INT))), $cart_item_key ); -
woocommerce_update_cart_action_cart_updated
action Used by 4 plugins → Copy link Customise this hookdo_action( 'woocommerce_update_cart_action_cart_updated' ); -
apply_filters( 'woocommerce_update_cart_validation', true, $cart_item_key, $fdoe_product_values, $fdoe_product_quantity ); -
do_action( 'yith_before_product_modal' );
Generated from Food Online for WooCommerce'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: