Inventory_Presser_Shortcode_Sort_By::remove_price_from_sort_dropdown( array $options )

Removes price from the dropdown options on sites that do not use the price field.

On This Page


Parameters Parameters

$options

(array) (Required) An array of sort fields and directions.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/shortcode/class-shortcode-sort-by.php

	public function remove_price_from_sort_dropdown( $options ) {
		unset( $options['price'] );
		return $options;
	}