Warning: This class has been deprecated.
BlocksWpQuery
BlocksWpQuery query.
Description Description
Wrapper for WP Query with additonal helper methods. Allows query args to be set and parsed without doing running it, so that a cache can be used.
Source Source
File: packages/woocommerce-blocks/src/Utils/BlocksWpQuery.php
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Methods Methods
- __construct — Constructor.
- get_cached_posts — Get cached posts, if a cache exists.