Skip to content
  • Home
  • Plugins
    • Product Gallery Slider for WooCommerce
    • Deposits for WooCommerce
  • Docs
  • Blog
  • Support
Account

Getting Started

8
  • Can I use my license on a test or development site?
  • Where Is My Purchase Code?
  • How to Install the PRO version?
  • How to update the PRO version?
  • Where can I cancel my subscription?
  • How can I get an invoice for my order?
  • How to remove VAT or Sales Tax from Paddle?
  • Enabling usage tracking

Product Gallery Slider

13
  • How To Fix WooCommerce Blurry Images?
  • How to use gallery slider with WPML?
  • High CLS issue in mobile devices
  • Add Additional Variation Images in WooCommerce?
  • How to enable a lightbox popup on clicking the large image?
  • How to Add Video into Product Gallery?
  • How to use the Product gallery slider with Elementor Page builder?
  • How to use product gallery slider with Divi Page builder?
  • How to center the video play icon?
  • What is the difference between classic and Default Variation behavior options?
  • YITH WooCommerce Color and Label Variations Conflict
  • Conflicts with other themes & plugins
  • Hooks: Actions and Filters

Bayna - Deposits for WooCommerce

14
  • Translate deposit plugin using Loco Translate
  • Switch to WooCommerce Classic Checkout & Cart
  • Custom amounts for deposit order
  • Future/due Payment for Deposit orders
  • Set up deposit payment reminders for customers
  • Cart or Checkout based deposit
  • Deposit Payment Plans for WooCommerce
  • Enable the Deposit/partial payment feature for the Product
  • Disable Payment Gateways on the Checkout page
  • Customize Email Templates for Deposit Orders
  • Deposit amount conflict with the “WooCommerce PayPal Payments” plugin
  • Nothing is being created in the Woocommerce > Deposit Payments!
  • Changelog
  • For Developers

Medixer – Medical WordPress Theme

11
  • Getting Started
  • Theme Setup
  • Install theme demo content
  • Theme options
  • Menu Setup
  • Add Team Member
  • Add Services & Portfolio
  • How to use Elementor Page Builder?
  • Speed optimization
  • Change the slug for custom post types?
  • Change Log

Wishlist for WooCommerce

5
  • Getting Started
  • Plugin Settings
  • Shortcodes
  • Overwrite Wishlist Template
  • For Developers
View Categories
  • Home
  • Docs
  • Product Gallery Slider
  • Hooks: Actions and Filters

Hooks: Actions and Filters

Niloy
Updated on June 9, 2024

Hide Featured Image from Gallary

add_filter( 'wpgs_show_featured_image_in_gallery', '__return_false', 20 );

Disable plugin slick js .

add_filter( 'wpgs_enqueue_slick_js', '__return_false' );

Add class into the main wrapper via a filter

add_filter('wpgs_wrapper_add_classes','wpgs_no_gallery_class' , 20 ,2);

function wpgs_no_gallery_class($class , $attachment_ids){
    return ' new-class' ;
}

Hide the Featured image from the thumbnail gallery.

Note: this filter will only work when the lightbox for thumbnails is activated.

add_filter( 'wpgs_show_featured_image_in_gallery', '__return_false', 20 );

Some themes or plugins are set large size for woocommerce_gallery_thumbnail image size or use this to other area. so in this case you can set your own image size .

add_filter('wpgs_new_thumb_img_size','my_new_thumbnail_size' , 20);

function my_new_thumbnail_size($size){
    return 'prefix_my_thumb_size' ;
}
add_image_size( 'prefix_my_thumb_size', 100, 100, true ); // 100 pixels wide by 100 pixels tall, hard crop mode

Change lightbox image size

add_filter('gallery_slider_lightbox_image_size','my_new_lightbox_size' , 20);

function my_new_lightbox_size($size){
    return 'large';
}

Change Image Zoom image size

add_filter('gallery_slider_zoom_image_size','my_new_zoom_image_size' , 20);

function my_new_zoom_image_size($size){
    return 'full';
}

more about the image size: https://developer.wordpress.org/reference/functions/add_image_size/

please let us know if you think we need to add any new hooks 🙂

Updated on June 9, 2024
Conflicts with other themes & plugins
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Was it helpful ?
  • Happy
  • Normal
  • Sad

Need Help?

support@codeixer.com

Useful Links
  • Terms & Conditions
  • Refund Policy
  • Privacy Statement
  • License Terms
  • Password Reset Link
  • Affiliates FAQ
  • Affiliate Account
  • Become an Affiliate
  • Write for Us
2018 – 2025 Codeixer LLC. All rights reserved.