WordPress.org

Make WordPress Core

Opened 7 months ago

#52284 new feature request

Add filter for notoptions after retrieval

Reported by: rebasaurus Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords:
Focuses: Cc:

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()?

Change History (0)

Note: See TracTickets for help on using tickets.