Change filter names to plural woocommerce_paypal_payments_buttons_disabled and woocommerce_paypal_payments_product_buttons_disabled

This commit is contained in:
Pedro Silva 2023-07-04 08:29:48 +01:00
parent 6b03960de7
commit 87665401e5
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -1371,7 +1371,7 @@ class SmartButton implements SmartButtonInterface {
* Allows to decide if the button should be disabled for a given product
*/
$is_disabled = apply_filters(
'woocommerce_paypal_payments_product_button_disabled',
'woocommerce_paypal_payments_product_buttons_disabled',
null,
$product
);
@ -1385,7 +1385,7 @@ class SmartButton implements SmartButtonInterface {
* Allows to decide if the button should be disabled globally or on a given context
*/
$is_disabled = apply_filters(
'woocommerce_paypal_payments_button_disabled',
'woocommerce_paypal_payments_buttons_disabled',
null,
$context
);