[wp-trac] [WordPress Trac] #58962: Provide a way to load multiple specific options with a single database request

WordPress Trac noreply at wordpress.org
Mon Oct 23 14:20:05 UTC 2023


#58962: Provide a way to load multiple specific options with a single database
request
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.4
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-dev-    |     Focuses:
  note                                           |  performance
-------------------------------------------------+-------------------------

Comment (by joemcgill):

 `wp_load_options_by_group()` sounds good to me. I think adding the `wp_`
 prefix is best practice for any new public functions at this point, even
 if some of the most basic original functions to get/update/delete objects
 omit the prefix. It also makes it very obvious that these are meant to be
 used by extenders and not primarily as core internals.

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


More information about the wp-trac mailing list