WordPress at Your Fingertips
function is not described

WC_Query::reset_chosen_attributes() public WC 1.0

Reset the chosen attributes so that get_layered_nav_chosen_attributes will get them from the query again.

{} It's a method of the class: WC_Query{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Query::reset_chosen_attributes();

Code of WC_Query::reset_chosen_attributes() WC 5.7.1

public static function reset_chosen_attributes() {
	self::$chosen_attributes = null;
}