[wp-trac] [WordPress Trac] #55942: Add a "value type" parameter to get_option() and get_metadata()

WordPress Trac noreply at wordpress.org
Wed May 3 02:13:12 UTC 2023


#55942: Add a "value type" parameter to get_option() and get_metadata()
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.3
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing                                        |  performance
-------------------------------------------------+-------------------------

Comment (by rjasdfiii):

 Those examples help.

 Is your intent to apply the feature only to "Options"?  Or maybe to
 wp_postmeta, too?

 How about an application example, where the value is a price, or size, or
 number of bedrooms, or calendar date, or ...

 And the value is used in an expression such as filtering with "where price
 between 200 and 2000".

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55942#comment:64>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list