Inventory_Presser_Vehicle::indicate_post_meta_values_are_numbers( string $value, string $meta_key )
indicate_post_meta_values_are_numbers
Contents
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.
Parameters Parameters
- $value
-
(string) (Required)
- $meta_key
-
(string) (Required)
Return Return
(string) Returns the input $value or the string 'meta_value_num'
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 ); }
Expand full source code Collapse full source code View on Github