Skip to content

Commit

Permalink
selektive
Browse files Browse the repository at this point in the history
  • Loading branch information
hjanuschka committed Aug 27, 2019
1 parent 187353c commit 992f091
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ public function add_actions()

//Disable KMM KRoN in json requests
add_filter('krn_kron_enabled', function () {
if (defined('REST_REQUEST') && REST_REQUEST // (#1)
|| isset($_GET['rest_route'])) {
if (apply_filters('krn_is_rest_api_request', false)) {
return false;
}

return true;
});

//Elastic Search
Expand Down

0 comments on commit 992f091

Please sign in to comment.