From 0052aacbbccd0fe95f14c09fa70f11051b88d063 Mon Sep 17 00:00:00 2001 From: helgatheviking <507025+helgatheviking@users.noreply.github.com> Date: Mon, 9 May 2022 13:19:32 -0600 Subject: [PATCH] Rename new filter to woocommerce_paypal_payments_product_supports_payment_request_button to avoid abbreviates --- modules/ppcp-button/src/Assets/SmartButton.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-button/src/Assets/SmartButton.php b/modules/ppcp-button/src/Assets/SmartButton.php index 8ee890e90..b13667902 100644 --- a/modules/ppcp-button/src/Assets/SmartButton.php +++ b/modules/ppcp-button/src/Assets/SmartButton.php @@ -423,7 +423,7 @@ class SmartButton implements SmartButtonInterface { if ( ! is_checkout() && is_a( $product, \WC_Product::class ) - && ( ! apply_filters( 'woocommerce_paypal_payments_product_supports_prb', ! $product->is_type( array( 'external', 'grouped' ) ) && $product->is_in_stock(), $product ) + && ( ! apply_filters( 'woocommerce_paypal_payments_product_supports_payment_request_button', ! $product->is_type( array( 'external', 'grouped' ) ) && $product->is_in_stock(), $product ) ) ) { return; @@ -440,7 +440,7 @@ class SmartButton implements SmartButtonInterface { if ( ! is_checkout() && is_a( $product, \WC_Product::class ) - && ( ! apply_filters( 'woocommerce_paypal_payments_product_supports_prb', ! $product->is_type( array( 'external', 'grouped' ) ) && $product->is_in_stock(), $product ) + && ( ! apply_filters( 'woocommerce_paypal_payments_product_supports_payment_request_button', ! $product->is_type( array( 'external', 'grouped' ) ) && $product->is_in_stock(), $product ) ) ) { return;