Skip to content

Commit

Permalink
Merge pull request #2086 from angelleye/PFW-1889-function-is-front-pa…
Browse files Browse the repository at this point in the history
…ge-was-called-incorrectly

PFW-1889-function-is-front-page-was-called-incorrectly
  • Loading branch information
Jaydeep7248 authored Sep 20, 2024
2 parents d7e6489 + ec10fa3 commit ed534e1
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 ed534e1

Please sign in to comment.