[wp-trac] [WordPress Trac] #56548: Introduce `get_option` action

WordPress Trac noreply at wordpress.org
Sun Sep 11 20:14:00 UTC 2022


#56548: Introduce `get_option` action
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch 2nd-opinion needs-unit-  |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by jorbin):

 One alternative idea that could solve this for here and other places in
 core would be a new suite of functions aallong the lines of:
 `do_dynamic_action`
 `apply_dynamic_filters`
 `add_dynamic_action`

 This could work in a backwards compatible way that allows
 `add_dynamic_action( 'option_{$option}', 'callback_on_them_all');`. One of
 the benefits I see is that we wouldn't need to worry about keeping two
 hooks in sync.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56548#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list