The woocs_show_side_swither filter is the last word on whether the side switcher — the floating currency panel attached to the edge of the screen — is rendered on the current page.
FOX first works out its own answer from the plugin settings, including any per-page exclusions, and then passes that answer through this filter. Whatever you return wins, so this is the hook to use when the built-in exclusion list cannot express your condition.
add_filter('woocs_show_side_swither', function ($show) {
if (is_checkout() || is_cart()) {
return false;
}
return $show;
});
Parameters:
$show (bool) - what FOX decided from the settings
Returns:
- (bool)
true to render the side switcher, false to hide it
Note: the hook name contains a typo in the plugin source — it is swither, not switcher. Use the name exactly as written here.