Opened 6 years ago
#52284 new feature request
Add filter for notoptions after retrieval
| Reported by: | rebasaurus | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Options, Meta APIs | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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()?
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)