woocommerce_paypal_account_restriction_notices_enabled

woocommerce_paypal_account_restriction_notices_enabled

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.10.5.3

apply_filters('woocommerce_paypal_account_restriction_notices_enabled') is found 1 times:

  • /includes/gateways/paypal/class-wc-gateway-paypal.php line 1043
    		 * @since 10.4.0
    		 *
    		 * @param bool $enabled Whether account restriction notices are enabled. Default true.
    		 */
    		if ( ! apply_filters( 'woocommerce_paypal_account_restriction_notices_enabled', true ) ) {
    			return;
    		}
    
    		PayPalNotices::manage_account_restriction_flag_for_notice( $http_code, $response_data, $order );
    	}
    }
    

See this hook used in plugins: