Leo Review Video Popup for WooCommerce 1.1.0 has 7 actions and 15 filters, read directly from its source code on Nov 19, 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 Leo Review Video Popup for WooCommerce fires an action
add_action( 'leovp_loaded', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Leo Review Video Popup for WooCommerce is about to use
add_filter( 'leovp_item_id', function( $item_id, $product ) {
// Change $item_id here.
return $item_id;
}, 10, 2 );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
-
/** * Filter the item_id used in dataLayer ecommerce items. Defaults to SKU, then * product ID. */ apply_filters( 'leovp_item_id', $item_id, $product ); -
/** * Return false to hide the button for a product. */ apply_filters( 'leovp_show_button', true, $product_id ); -
/** * Filter the HTML allowed in the button, badge and popup output. */ apply_filters( 'leovp_allowed_html', $allowed ); -
/** * Filter the archive badge HTML. */ apply_filters( 'leovp_badge_html', $html, $product->get_id() ); -
/** * Filter the hook and priority used to place the button on product pages. */ apply_filters( 'leovp_button_hook', $use_astra ? array( 'hook' => $astra_hooks[ $position ], 'priority' => 10 ) : array( 'hook' => 'woocommerce_single_product_summary', 'priority' => $positions[ $position ] ) ); -
/** * Filter the button HTML. */ apply_filters( 'leovp_button_html', $html, $product_id, $style ); -
/** * Filter the frontend config. Pro extends it. */ apply_filters( 'leovp_frontend_config', $config ); -
/** * Force-load assets on other pages (for example a custom product grid). */ apply_filters( 'leovp_load_assets', false ); -
/** * Fires once the free plugin is fully loaded. Pro and other add-ons hook in * here. */ do_action( 'leovp_loaded' ); -
/** * Add more fields to the Review Video meta box (Pro adds chapters and pros and * cons). */ do_action( 'leovp_meta_box_fields', $post ); -
/** * Products with more variations than this keep the "Select options" link, so * very large products do not slow the popup down. */ apply_filters( 'leovp_popup_variation_limit', 60, $product ); -
/** * Filter the popup data for one product. Pro adds chapters, pros and cons, and * variations here. */ apply_filters( 'leovp_rest_product_response', $data, $product ); -
/** * Save extra meta box fields. */ do_action( 'leovp_save_meta_box', $product ); -
/** * Filter the settings fields. Pro adds its own sections here. */ apply_filters( 'leovp_settings_fields', $fields ); -
/** * Allow or block tracking, for example from a consent plugin. */ apply_filters( 'leovp_tracking_allowed', $tracking ); -
/** * Filter the video data before it is used anywhere. */ apply_filters( 'leovp_video_data', $data, $product_id ); -
/** * This filter is documented in WooCommerce: includes/class-wc-form-handler.php */ apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id, $variation ); -
apply_filters( 'woocommerce_variation_option_name', $term->name, $term, $name, $product ); -
do_action( 'leovp_after_modal' ); -
do_action( 'leovp_before_modal' ); -
do_action( 'leovp_modal_info_sections' ); -
do_action( 'woocommerce_ajax_added_to_cart', $product_id );
Generated from Leo Review Video Popup 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: