Inventory_Presser_Admin_Options::change_sort_by_option_values( mixed $value )

change_sort_by_option_values

On This Page


Parameters Parameters

$value

(mixed) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/admin/class-admin-options.php

	public function change_sort_by_option_values( $value ) {
		if ( 'date_entered' === $value ) {
			return 'post_date';
		}
		if ( 'last_modified' === $value ) {
			return 'post_modified';
		}
		return $value;
	}