Inventory_Presser_Vehicle::indicate_post_meta_values_are_numbers( string $value, string $meta_key )

indicate_post_meta_values_are_numbers


Description Description

Filter callback. Helps WordPress understand which post meta values should be treated as numbers. By default, they are all strings, and strings sort differently than numbers.


Top ↑

Parameters Parameters

$value

(string) (Required)

$meta_key

(string) (Required)


Top ↑

Return Return

(string) Returns the input $value or the string 'meta_value_num'


Top ↑

Source Source

File: includes/class-vehicle.php

		function indicate_post_meta_values_are_numbers( $value, $meta_key )
		{
			return ( INVP::meta_value_is_number( $meta_key ) ? 'meta_value_num' : $value );
		}