For the complete documentation index, see llms.txt. This page is also available as Markdown.

weglot_wc_reload_selector

Defines the CSS selector clicked to reload WooCommerce cart fragments after a language switch. Default .weglot-lang a.

add_filter( 'weglot_wc_reload_selector', 'custom_weglot_wc_reload_selector' );
function custom_weglot_wc_reload_selector( $selector ) {
    return '.my-switcher a';
}