Skip to content

Commit

Permalink
new: added editor client config filter
Browse files Browse the repository at this point in the history
  • Loading branch information
alecszaharia committed Apr 10, 2024
1 parent daba9c3 commit 3c1ed7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/editor/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -1735,7 +1736,6 @@ public function getProjectStatus()
*/
public function getApiActions($config = [], $context = null)
{

$pref = Brizy_Editor::prefix();

$actions = array(
Expand Down

0 comments on commit 3c1ed7c

Please sign in to comment.