WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #46635, comment 18


Ignore:
Timestamp:
04/03/2019 09:26:09 PM (16 months ago)
Author:
schlessera
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46635, comment 18

    initial v1  
    22
    33- Yes, the `RemovableClosure` is a `callable` to PHP, so it will just behave as a regular Closure, or any other callable.
    4 - We can still provide a convenience function, like `add_closure_action( $hook, $id, $closure, $priority, $num_args )` to hide the object instantiation. This can be then without BC break.
     4- We can still provide a convenience function, like `add_closure_action( $hook, $id, $closure, $priority, $num_args )` to hide the object instantiation. This can be done without BC break.