From f139c71f0bd8689e8d35638af390b2a1d9278c9f Mon Sep 17 00:00:00 2001 From: ashfame Date: Fri, 27 Dec 2024 13:18:09 +0400 Subject: [PATCH] have our transformers also use Ops class --- src/plugin/class-transformer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin/class-transformer.php b/src/plugin/class-transformer.php index 22a8ac80..81f9ae82 100644 --- a/src/plugin/class-transformer.php +++ b/src/plugin/class-transformer.php @@ -7,7 +7,7 @@ class Transformer { public const string META_KEY_LIBERATED_OUTPUT = '_data_liberation_output'; public function __construct() { - TransformersRegistry::add( + Ops::handle( SubjectType::BLOGPOST, array( 'slug' => 'try_wordpress', @@ -19,7 +19,7 @@ public function __construct() { ) ); - TransformersRegistry::add( + Ops::handle( SubjectType::PAGE, array( 'slug' => 'try_wordpress',