Filters::get_layout_setting()
Which layout setting the user picker for their filters.
Return
(string) Only vertical
or horizontal
values are allowed here.
Source
File: src/Tribe/Views/V2/Filters.php
public function get_layout_setting() { $default = 'vertical'; $allowed = [ 'horizontal', $default ]; $value = (string) tribe_get_option( 'events_filters_layout', $default ); return esc_attr( in_array( $value, $allowed ) ? $value : $default ); }
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |