This commit is contained in:
Pedro Silva 2023-07-03 08:31:27 +01:00
parent e94316aecd
commit cdd4a69bf5
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -1351,6 +1351,11 @@ class SmartButton implements SmartButtonInterface {
); );
} }
/**
* Checks if PayPal buttons/messages should be rendered for the current page.
*
* @return bool
*/
protected function is_button_disabled(): bool { protected function is_button_disabled(): bool {
if ( 'product' !== $this->context() ) { if ( 'product' !== $this->context() ) {
return false; return false;