Skip to content

Commit 04a0902

Browse files
committed
have our transformers also use Ops class
1 parent c06eeee commit 04a0902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugin/class-transformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Transformer {
77
public const string META_KEY_LIBERATED_OUTPUT = '_data_liberation_output';
88

99
public function __construct() {
10-
TransformersRegistry::add(
10+
Ops::handle(
1111
SubjectType::BLOGPOST,
1212
array(
1313
'slug' => 'try_wordpress',
@@ -19,7 +19,7 @@ public function __construct() {
1919
)
2020
);
2121

22-
TransformersRegistry::add(
22+
Ops::handle(
2323
SubjectType::PAGE,
2424
array(
2525
'slug' => 'try_wordpress',

0 commit comments

Comments
 (0)