> For the complete documentation index, see [llms.txt](https://developers.weglot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.weglot.com/wordpress/helpers-functions-1/weglot_wc_reload_selector.md).

# weglot\_wc\_reload\_selector

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

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