Ticket #5209 (closed enhancement: fixed)
Add an action hook and sanitize_option filter to add_option_{option_name}
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | General | Version: | 2.3 |
| Severity: | minor | Keywords: | add_option, sanitize_option, hook, filter, has-patch |
| Cc: |
Description
In the spirit of #5208, I propose adding a filter and an action to the add_option function, as it currently has neither.
Attachments
Change History
johnbillion — 4 years ago
-
attachment
5209.diff
added
comment:3
johnbillion — 4 years ago
- Keywords sanitize_option, added; pre_add_option, removed
- Summary changed from Two more new hooks: add_option_{option_name} and pre_add_option_{option_name} to Add an action hook and sanitize_option filter to add_option_{option_name}
In light of westi's comment over at #5208, I'm changing this ticket to propose adding the sanitize_option filter to add_option_{option_name}, in addition to an action hook.
See new patch.
Anyone see any problems with adding sanitize_option to the add_option function?
- Status changed from new to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.

Introducing add_option_{option_name} and pre_add_option_{option_name}