| 开发者 | sazzad23 |
|---|---|
| 更新时间 | 2026年7月14日 20:58 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
sazkit_settings — filter merged plugin settings at runtime.sazkit_gallery_image_ids — filter the attachment IDs used in the gallery.sazkit_main_image_size / sazkit_thumb_image_size — filter the registered image sizes.sazkit_swiper_main_args / sazkit_swiper_thumbs_args — filter the Swiper configuration.sazkit_swiper_handles — override the detected Swiper script/style handles.sazkit_zoom_level — filter the hover-zoom magnification factor (default 2.0).sazkit_slide_badges — filter to add badge overlays (e.g. Sale/New ribbons) to a gallery slide.sazkit_before_main_slides / sazkit_after_main_slides — actions for add-ons to inject extra .sazkit-slide elements (e.g. video) into the main slider.sazkit_before_thumb_slides / sazkit_after_thumb_slides — matching actions for the thumbnail slider, to keep both sliders' indexes in sync.sazkit_gallery_wrapper_classes — filter to add extra classes to the gallery wrapper (e.g. add-on layout classes).sazkit_disable_main_slider — filter to skip Swiper initialization entirely, for add-ons rendering their own layout (e.g. a grid).sazkit_main_image_attrs / sazkit_thumb_image_attrs — filter the <img> attributes per slide (e.g. lazy-loading control).sazkit_main_image_html / sazkit_thumb_image_html — filter the final <img> HTML per slide (e.g. to wrap it in a <picture> element for WebP/AVIF).render_gallery_for_product( WC_Product $product ) and enqueue_gallery_assets() are public methods add-ons can call directly to render/enqueue the gallery for an arbitrary product outside the single product page (e.g. a shortcode or block).
sazkit_settings_nav_tabs — action to add extra tab links to the settings page's nav (so an add-on doesn't need its own separate admin menu item).sazkit_settings_panels — action to render extra tab panel(s) inside the settings card, after the built-in General/Style tabs' own <form> closes. Forms can't nest, so add-on panels needing to save fields must wrap themselves in their own <form> with their own save button — the built-in Cancel/Save changes footer only submits the General/Style tab and hides itself automatically while a non-native tab is active. Panels should use the same .sazkit-tab-panel / #sazkit-tab-{slug} markup convention as the built-in tabs so the shared tab-switching JS shows/hides them correctly.sazkit:zoom (hover zoom activated on a slide) and sazkit:lightbox-open (the lightbox opened for a slide), both passed the attachment ID.
sazkit-gallery folder to /wp-content/plugins/, or install it through the Plugins screen in WordPress.Yes. WooCommerce 8.0 or newer must be active. The plugin does nothing on its own.
Yes. When a variation with its own image is selected, the first slide updates to that image and returns to the original when the selection is reset.
Yes. All plugin strings are internationalized, and a translation template (languages/sazkit-gallery.pot) is included. Product images and titles themselves are WooCommerce data, so WPML/Polylang translate them automatically — no extra configuration is required.
Yes. If your theme or another plugin already registers a Swiper script/style handle, this plugin uses it instead of loading a second copy.
sazkit-product-gallery-for-woocommerce), resolving a Text-Domain/slug mismatch flagged by Plugin Check. The Text Domain and all translation strings now correctly match the assigned slug. Also removed a stray .claude directory (an AI-assistant config folder) that had been flagged as not belonging in a production plugin.wp_add_inline_style) has been removed entirely. The Style tab still offers the arrow/dot color pickers.SazKit_Gallery to Sazkit_Gallery to resolve a plugin-review prefix-consistency flag (the capitalized "K" didn't match the lowercase sazkit_ prefix used everywhere else — hook names, filters, the option key). No functional change; only affects code that referenced the class name directly (e.g. the Pro add-on, updated to match).sazkit-product-gallery-for-woocommerce (was sazkit-gallery) and updated every translation string to match. The admin menu slug, enqueued script/style handles, and the .sazkit-gallery CSS class are unchanged — only the translation domain moved.position to a theme's own !important rule even after 1.0.2's hardening: when both sides declare a property !important, it comes down to plain specificity, and a theme selector like button:not(.fa):not(.close-style)::before out-specifies a doubled class. The affected rules (main/thumbnail/lightbox arrow icons) now triple the class instead of doubling it, which reliably exceeds that kind of theme selector regardless of load order.!important on every property that would visibly break if a theme's own generic styling overrode it — not just the arrow icons fixed in 1.0.1. Purely cosmetic details are left as-is; this only covers things that would otherwise stop working correctly.<button> element's ::before/::after for its own decorative overlay below ~991px). The arrow icons' properties are now set with !important throughout to guarantee they win regardless of what a theme's generic button styling does.