Product Gallery Slider, Additional Variation Images, Product Video, Product Image Zoom and Lightbox for WooCommerce icon
Media, Galleries & Sliders

Product Gallery Slider, Additional Variation Images, Product Video, Product Image Zoom and Lightbox for WooCommerce hooks reference

  • By ShapedPlugin LLC
  • v4.0.0 New
  • Updated

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.

functions.phpyour child theme
// 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

  • admin/partials/shapedplugin-bfcm-notice.php line 142
    /**
     * Filters whether the BFCM 2026 notice campaign is active.
     */
    apply_filters( 'shapedplugin_bfcm_2026_active', $active );
  • includes/class-woo-gallery-slider-video-url.php line 192
    /**
     * 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 );
  • public/partials/class/class-public-helper.php line 539
    /**
     * Extend the public-facing settings subset.
     */
    apply_filters( 'wcgs_public_settings_keys', $public_keys );
  • admin/class-woo-gallery-slider-admin.php line 97 · used in 10 places
    apply_filters( 'wcgs_ui_permission', 'manage_options' );
  • includes/class-woo-gallery-slider.php line 410
    do_action( 'flatsome_sale_flash' );
  • includes/class-woo-gallery-slider-import-export.php line 190
    do_action( 'sp_wcgs_imported', $new_tabs_id );
  • includes/class-woo-gallery-slider.php line 411
    do_action( 'urna_woocommerce_before_product_block_grid' );
  • public/class-woo-gallery-slider-public.php line 530
    apply_filters( 'wcgs_body_font_size', '14' );
  • public/class-woo-gallery-slider-public.php line 471
    apply_filters( 'wcgs_dequeue_magnific_popup', true );
  • admin/dashboard/class-woo-gallery-slider-settings-api.php line 221
    apply_filters( 'wcgs_import_export_capability', 'manage_options' );
  • public/class-woo-gallery-slider-public.php line 529
    apply_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: