Skip to content

Commit

Permalink
PFW-1889 Fix the is front page called incorrectly debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaydeep7248 committed Sep 17, 2024
1 parent d7e6489 commit ec10fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppcp-gateway/angelleye-paypal-ppcp-common-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1445,9 +1445,9 @@ function angelleye_ppcp_apple_google_vault_supported_country() {

function angelleye_ppcp_pay_later_messaging() {
$page = '';
if (is_front_page() || is_home()) {
if ( (did_action('wp') && is_front_page()) || (did_action('wp') && is_home())) {
$page = 'home';
} elseif (is_product_category() || is_category()) {
} elseif (is_product_category() || (did_action('wp') && is_category())) {
$page = 'category';
} elseif (is_product()) {
$page = 'product';
Expand Down

0 comments on commit ec10fa3

Please sign in to comment.