#41576 closed enhancement (duplicate)
Add global filters in options API
Reported by: | pcfreak30 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.9 |
Component: | Options, Meta APIs | Keywords: | |
Focuses: | Cc: |
Description
Currently get_option has
$pre = apply_filters( "pre_option_{$option}", false, $option );
I would like to see:
$pre = apply_filters( "pre_option", false, $option );
and possibly a better filter name. Need this in all option CRUD functions. Use case is allowing any option to be rerouted without knowing the option name ahead of time. In my case dealing with any transients. At present I have to filter the wpdb query hook and do sql rewritng.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Duplicate of #37930.