wpcs_drop_down_view
This hook allows manipulations with view of the currency switcher if its necessary.
public function get_drop_down_view()
{
return apply_filters('wpcs_drop_down_view', $this->get_option('wpcs_drop_down_view', 'ddslick'));
}
For example if you want to change currency switcher view in mobile browsers:
add_filter('wpcs_drop_down_view', 'wpcs_drop_down_view', 999);
function wpcs_drop_down_view($view)
{
if (wp_is_mobile())
{
return 'no';
}
return $view;
}
Possible values:
- no
- ddslick
- chosen
- chosen_dark
- wselect
- flags
