mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Change filter names to plural woocommerce_paypal_payments_buttons_disabled and woocommerce_paypal_payments_product_buttons_disabled
This commit is contained in:
parent
6b03960de7
commit
87665401e5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue