File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 13
13
/**
14
14
* Action decorator.
15
15
*
16
- * @deprecated 1 .0.0 Use `XWP\Hook\Decorators\Action` instead.
16
+ * @deprecated 2 .0.0 Use `XWP\Hook\Decorators\Action` instead.
17
17
*/
18
18
#[\Attribute( \Attribute::TARGET_FUNCTION | \Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD )]
19
19
class Action extends New_Action {
Original file line number Diff line number Diff line change 13
13
/**
14
14
* Filter decorator.
15
15
*
16
- * @deprecated 1 .0.0 Use `XWP\Hook\Decorators\Filter` instead.
16
+ * @deprecated 2 .0.0 Use `XWP\Hook\Decorators\Filter` instead.
17
17
*/
18
18
#[\Attribute( \Attribute::TARGET_FUNCTION | \Attribute::IS_REPEATABLE | \Attribute::TARGET_METHOD )]
19
19
class Filter extends New_Filter {
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Hookable attribute class file.
4
+ *
5
+ * @package WP Utils
6
+ * @subpackage Decorators
7
+ */
8
+
9
+ namespace Oblak \WP \Decorators ;
10
+
11
+ use Attribute ;
12
+ use XWP \Hook \Decorators \Handler as New_Handler ;
13
+
14
+ /**
15
+ * Defines class as hookable - it will be automatically constructed on given hook with given priority.
16
+ *
17
+ * @deprecated 2.0.0 Use `XWP\Hook\Decorators\Handler` instead.
18
+ */
19
+ #[Attribute( Attribute::TARGET_CLASS )]
20
+ class Handler extends New_Handler {
21
+ }
Original file line number Diff line number Diff line change 14
14
/**
15
15
* Defines class as hookable - it will be automatically constructed on given hook with given priority.
16
16
*
17
- * @deprecated 1 .0.0 Use `XWP\Hook\Decorators\Handler` instead.
17
+ * @deprecated 2 .0.0 Use `XWP\Hook\Decorators\Handler` instead.
18
18
*/
19
19
#[Attribute( Attribute::TARGET_CLASS )]
20
20
class Hookable extends Handler {
You can’t perform that action at this time.
0 commit comments