Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#2332 closed enhancement (fixed)

New hook: update_option_{$option}

Reported by: skeltoac Owned by: ryan
Priority: normal Milestone:
Component: Administration Version: 2.0
Severity: normal Keywords: bg|has-patch bg|commit
Cc:

Description

Allows plugins to react when any particular option is updated via options.php. More reliable than checking globals.

Attachments (3)

options.php.diff (320 bytes) - added by skeltoac 7 years ago.
update_option-action.diff (652 bytes) - added by skeltoac 7 years ago.
update_option.diff (574 bytes) - added by skeltoac 7 years ago.
Use double quotes.

Download all attachments as: .zip

Change History (11)

  • Keywords bg|2nd-opinion bg|dev-feedback added

Maybe it would be better in the actual update_option function. What do you think?

  • Milestone changed from 2.0.1 to 2.1

update_option() seems the more logical place.

comment:4   ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3485]) update_option_* actions. fixes #2332

comment:5   ryan7 years ago

  • Milestone changed from 2.1 to 2.0.1
  • Keywords bg|commit added; bg|2nd-opinion bg|dev-feedback removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

Wrong quotes. My bad.

Use double quotes.

comment:7   ryan7 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [3487]) Use double quotes. fixes #2332

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.