From 3c1ed7c2574e14d9a8c0c9a49a0f7f0a5963d626 Mon Sep 17 00:00:00 2001 From: Zaharia Alexandru Date: Thu, 21 Sep 2023 15:05:46 +0300 Subject: [PATCH] new: added editor client config filter --- editor/editor/editor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/editor/editor.php b/editor/editor/editor.php index ebc13652b..9af12a6c0 100755 --- a/editor/editor/editor.php +++ b/editor/editor/editor.php @@ -96,12 +96,13 @@ public function getClientConfig($context) ]; $config = $this->getApiConfigFields($config, $context); - $config = $this->addLoopSourcesClientConfig( + $config = $this->addLoopSourcesClientConfig( $config, $mode === 'template', $this->post->getWpPostId(), $context ); + $config = apply_filters('brizy_client_config', $config, $context); return $config; } @@ -1735,7 +1736,6 @@ public function getProjectStatus() */ public function getApiActions($config = [], $context = null) { - $pref = Brizy_Editor::prefix(); $actions = array(