hookphp icon indicating copy to clipboard operation
hookphp copied to clipboard

Move order to third parameter and make optional?

Open pwFoo opened this issue 5 years ago • 0 comments

Maybe it would be easier to have "order" as third and optional parameter for addCallback()? Default could be "0" and be executed after the original method? More than one hook with the same order will be executed with the same priority?

"HookBefore" could be done by negative order and a higher positive value would be executed later ("hookAfter").

pwFoo avatar Dec 31 '19 21:12 pwFoo