PluginProbe
Filter Everything — WordPress & WooCommerce Filters / 1.9.7
Filter Everything — WordPress & WooCommerce Filters v1.9.7
1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2.2 1.9.2.1 trunk 1.2.1 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.4.1 1.4.4 1.4.5 1.4.8 1.4.9 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 All 52 releases
← All changes | src/Settings/Container.php +14 -0 1.9.2.21.9.7 View file →
@@ -147,8 +147,22 @@
147 147
148 148 return $this->getService('tabrenderer');
149 149 }
150 150
151 + /**
152 + * Per-request filter state (parsed request, relevant sets, JSON payload).
153 + * @since 1.9.7
154 + * @return FilterContext
155 + */
156 + public function getFilterContext()
157 + {
158 + if ( ! isset( $this->services['filtercontext'] ) ) {
159 + $this->addService( 'filtercontext', new FilterContext() );
160 + }
161 +
162 + return $this->getService( 'filtercontext' );
163 + }
164 +
151 165 public function getSwatches()
152 166 {
153 167 if ( !isset( $this->services['swatches'] ) ) {
154 168 $this->addService('swatches', new Swatches() );