Plugin Directory

Changeset 3333398


Ignore:
Timestamp:
07/24/2025 08:58:01 AM (8 months ago)
Author:
wijnbergdevelopments
Message:

Small re-order fix

Location:
product-gallery-swiper-for-woocommerce
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • product-gallery-swiper-for-woocommerce/tags/1.5.8/public/class-wdevs-gallery-swiper-public.php

    r3333374 r3333398  
    127127     */
    128128    public function on_woocommerce_init() {
    129         $this->setup_default_woocommerce_integration();
    130 
    131129        // Hooks for external developers to call our methods
    132130        add_action( 'wdevs_gallery_swiper_start_gallery_rendering', [ $this, 'start_gallery_rendering' ] );
     
    139137        $this->add_themes_compatibility();
    140138        $this->add_plugins_compatibility();
     139
     140        $this->setup_default_woocommerce_integration();
    141141    }
    142142
     
    243243            if ( generatepress_is_module_active( 'generate_package_woocommerce', 'GENERATE_WOOCOMMERCE' ) ) {
    244244                $this->disable_default_thumbnail();
    245                
     245
    246246                // Use filter to disable default integration instead of remove_action
    247247                add_filter( 'wdevs_gallery_swiper_enable_default_integration', '__return_false' );
  • product-gallery-swiper-for-woocommerce/trunk/public/class-wdevs-gallery-swiper-public.php

    r3333374 r3333398  
    127127     */
    128128    public function on_woocommerce_init() {
    129         $this->setup_default_woocommerce_integration();
    130 
    131129        // Hooks for external developers to call our methods
    132130        add_action( 'wdevs_gallery_swiper_start_gallery_rendering', [ $this, 'start_gallery_rendering' ] );
     
    139137        $this->add_themes_compatibility();
    140138        $this->add_plugins_compatibility();
     139
     140        $this->setup_default_woocommerce_integration();
    141141    }
    142142
     
    243243            if ( generatepress_is_module_active( 'generate_package_woocommerce', 'GENERATE_WOOCOMMERCE' ) ) {
    244244                $this->disable_default_thumbnail();
    245                
     245
    246246                // Use filter to disable default integration instead of remove_action
    247247                add_filter( 'wdevs_gallery_swiper_enable_default_integration', '__return_false' );
Note: See TracChangeset for help on using the changeset viewer.