Skip to content

Commit

Permalink
fix: prevent customer feedback action from loading in admin area
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink committed Dec 18, 2024
1 parent b2865a8 commit b5cdd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/php/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct()
add_action('wp_enqueue_scripts', array($this, 'enqueueScripts'), 30);
add_action('add_meta_boxes', array($this, 'removeUnwantedModuleMetaboxes'));
add_action('loop_end', function () {
if (!defined('CUSTOMER_FEEDBACK_DISABLE_AUTO_LOAD')) {
if (!defined('CUSTOMER_FEEDBACK_DISABLE_AUTO_LOAD') && !is_admin()) {
do_action('customer-feedback');
}
});
Expand Down

0 comments on commit b5cdd36

Please sign in to comment.