Add locations for block, do not load non-block scripts on block pages

This commit is contained in:
Alex P 2023-03-29 20:15:42 +03:00
parent dc3fde5abf
commit bfaf05a96e
No known key found for this signature in database
GPG key ID: 54487A734A204D71
7 changed files with 89 additions and 9 deletions

View file

@ -98,6 +98,9 @@ class SettingsStatus {
if ( 'pay-now' === $location ) {
$location = 'checkout';
}
if ( 'checkout-block' === $location ) {
$location = 'checkout-block-express';
}
return $location;
}