Product Gallery Slider, Additional Variation Images, Product Video, Product Image Zoom and Lightbox for WooCommerce 4.0.0 has 9 actions and 22 filters, read directly from its source code on Nov 17, 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 Product Gallery Slider, Additional Variation Images, Product Video, Product Image Zoom and Lightbox for WooCommerce fires an action
add_action( 'sp_woo_gallery_main_video_imported', function( $attachment_id, $video_url, $arg3 ) {
// Your code runs here.
}, 10, 3 );
// Change a value Product Gallery Slider, Additional Variation Images, Product Video, Product Image Zoom and Lightbox for WooCommerce is about to use
add_filter( 'sp_woo_gallery_is_valid_video_url', function( $value, $url, $parsed ) {
// 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
-
/** * Filter: Allow custom video URL validation. */ apply_filters( 'sp_woo_gallery_is_valid_video_url', Woo_Gallery_Slider_Video_Url::is_valid( $url ), $url, $parsed ); -
/** * Filter the raw gallery entries (image URLs, or image|video pairs) before * parsing. */ apply_filters( 'sp_woo_gallery_raw_imported_images', $raw_gallery_images, $product_id, $data, $this->column_id ); -
/** * Filters whether the BFCM 2026 notice campaign is active. */ apply_filters( 'shapedplugin_bfcm_2026_active', $active ); -
/** * Filter entries before export. */ apply_filters( 'sp_woo_gallery_exported_entries', $entries, $product_id ); -
/** * Filter formatted export string. */ apply_filters( 'sp_woo_gallery_exported_string', $formatted, $entries, $product_id ); -
/** * Filter entries before export. */ apply_filters( 'sp_woo_gallery_main_exported_entries', $entries, $product_id ); -
/** * Filter formatted export string. */ apply_filters( 'sp_woo_gallery_main_exported_string', $formatted, $entries, $product_id ); -
/** * Filter parsed entries before processing. */ apply_filters( 'sp_woo_gallery_main_parsed_import_entries', $parsed_entries, $product->get_id(), $data ); -
/** * Action after video attached. */ do_action( 'sp_woo_gallery_main_video_imported', $attachment_id, $video_url, $product->get_id() ); -
/** * Filter parsed entries before processing. */ apply_filters( 'sp_woo_gallery_parsed_import_entries', $parsed_entries, $product_id, $data, $this->column_id ); -
/** * Filter the raw gallery images before processing. */ apply_filters( 'sp_woo_gallery_raw_exported_images', $gallery_images, $product ); -
/** * Action after video attached. */ do_action( 'sp_woo_gallery_video_imported', $attachment_id, $video_url, $product_id ); -
/** * Filters whether the variation galleries come from WooCommerce core (and the * plugin's variation gallery field is hidden). */ apply_filters( 'wcgs_core_variation_gallery_enabled', $enabled ); -
wcgs_is_valid_video_url
filter/** * Filters whether a URL may be stored as an image's video (e.g. to allow a CDN * that serves video files without an extension). */ apply_filters( 'wcgs_is_valid_video_url', $valid, $url ); -
wcgs_public_settings_keys
filter/** * Extend the public-facing settings subset. */ apply_filters( 'wcgs_public_settings_keys', $public_keys ); -
/** * Action hook that fires after the export/import class is loaded. */ do_action( 'woo_gallery_export_import_loaded', $this ); -
/** * Action hook that fires after the export/import class is loaded. */ do_action( 'woo_gallery_product_video_export_import_loaded', $this ); -
wcgs_ui_permission
filterapply_filters( 'wcgs_ui_permission', 'manage_options' ); -
wcgs_disable_gallery_slider
filterapply_filters( 'wcgs_disable_gallery_slider', false, $product->get_id() ); -
apply_filters( 'sp_woo_gallery_slider_use_slug_attr', true ); -
flatsome_sale_flash
actiondo_action( 'flatsome_sale_flash' ); -
apply_filters( 'sp_gallery_transient_expiration', MONTH_IN_SECONDS ); -
sp_wcgs_imported
actiondo_action( 'sp_wcgs_imported', $new_tabs_id ); -
apply_filters_deprecated( 'sp_woo_gallery_exported_images', array( array_column( $entries, 'image' ), $product_id ), '4.0.0', 'sp_woo_gallery_exported_entries' ); -
do_action( 'sp_woo_gallery_slider_after_container' ); -
do_action( 'sp_woo_gallery_slider_before_container' ); -
do_action( 'urna_woocommerce_before_product_block_grid' ); -
wcgs_body_font_size
filterapply_filters( 'wcgs_body_font_size', '14' ); -
wcgs_dequeue_magnific_popup
filterapply_filters( 'wcgs_dequeue_magnific_popup', true ); -
apply_filters( 'wcgs_import_export_capability', 'manage_options' ); -
wcgs_product_wrapper
filterapply_filters( 'wcgs_product_wrapper', '.single-product .product' );
Generated from Product Gallery Slider, Additional Variation Images, Product Video, Product Image Zoom and Lightbox for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: