This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Cache_Base::asset_query_var()
Get Current query type. single|archive.
Description
Return
(String)
Source
File: classes/cache/class-astra-cache-base.php
private function asset_query_var() { if ( 'post' === $this->asset_type || 'home' === $this->asset_type || 'frontpage' === $this->asset_type ) { $slug = 'single'; } else { $slug = 'archive'; } return apply_filters( 'astra_cache_asset_query_var', $slug ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |