[wp-trac] [WordPress Trac] #52284: Add filter for notoptions after retrieval

WordPress Trac noreply at wordpress.org
Tue Jan 12 18:17:59 UTC 2021


#52284: Add filter for notoptions after retrieval
--------------------------------+-----------------------------
 Reporter:  rebasaurus          |      Owner:  (none)
     Type:  feature request     |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 Since we are able to filter alloptions after retrieving them via
 `alloptions`
 (https://github.com/WordPress/WordPress/blob/f0078d043e0f2805c2400bd5e869eb3533712eec
 /wp-includes/option.php#L270), it would be nice to do the same for
 notoptions. This would be great in the case where a developer would want
 to add a check to ensure that a certain value **never** ends up there.

 Perhaps, this could live in a function similar to `wp_load_alloptions()`,
 potentially `wp_load_notoptions()`?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52284>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list