[wp-trac] [WordPress Trac] #55584: Settings API autoload hook

WordPress Trac noreply at wordpress.org
Wed Sep 28 14:32:02 UTC 2022


#55584: Settings API autoload hook
--------------------------------+------------------------------
 Reporter:  hir88en             |       Owner:  (none)
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  performance
--------------------------------+------------------------------

Comment (by iandunn):

 I think this could be useful; I'm auditing a perf issue on a site, and one
 part of the problem is that several plugins have large settings. Those
 settings are only needed on a few pages, though, so they shouldn't be
 autoloaded.


 At first glance, it seems like adding a new param to `register_setting()`
 would be more convenient than having to setup a callback in addition to
 registration.

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


More information about the wp-trac mailing list