WC_Query::adjust_posts_count( int $count, WP_Query $query )
This function used to be hooked to found_posts and adjust the posts count when the filtering by attribute widget was used and variable products were present. Now it isn’t hooked anymore and does nothing but return the input unchanged, since the pull request in which it was introduced has been reverted.
Description Description
Parameters Parameters
- $count
-
(Required) Original posts count, as supplied by the found_posts filter.
- $query
-
(Required) The current WP_Query object.
Return Return
(int) Adjusted posts count.
Source Source
File: includes/class-wc-query.php
416 |
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |