Skip to content

Commit

Permalink
Content filter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mangrose committed Apr 15, 2024
1 parent 4397778 commit 6d83bbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/class-tulo-payway-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ public function has_access($post_id = null, $restrictions = null) {

// If restrictions only require logged in user, return true if user is logged in
if ($this->restrictions_require_login_only($restrictions)) {
$this->common->write_log("!! restrictions require login only");
return true;
}

Expand Down Expand Up @@ -288,7 +289,7 @@ public function content_filter($content) {
return $content;
}

if (is_admin() || !wp_doing_ajax()) {
if (is_admin()) {
return $content;
}

Expand Down

0 comments on commit 6d83bbb

Please sign in to comment.