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.


Top ↑

Return Return

(int) Adjusted posts count.


Top ↑

Source Source

File: includes/class-wc-query.php

416
 

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.