Hooks::on_shortcode_toggle_view_hooks( bool $toggle )
Listens on the shortcode View hooks toggle to set the render_filters
property and avoid displaying filters on shortcodes.
Contents
Parameters
- $toggle
-
(bool) (Required) Whether View hooks are being toggled on or off. Before a shortcode HTML is rendered the toggle will be
true
,false
after a shortcode HTML rendered.
Source
File: src/Tribe/Views/V2/Hooks.php
public function on_shortcode_toggle_view_hooks( $toggle ) { $this->should_display_filters = ! $toggle; }
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |