woocommerce_paypal_account_restriction_notices_enabled

woocommerce_paypal_account_restriction_notices_enabled

Appears in:
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.10.4.3

apply_filters('woocommerce_paypal_account_restriction_notices_enabled') is found 1 times:

  • /includes/gateways/paypal/class-wc-gateway-paypal.php line 1054
    		 * @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;
    		}
    
    		WC_Gateway_Paypal_Notices::manage_account_restriction_flag_for_notice( $http_code, $response_data, $order );
    	}
    }
    

See this hook used in plugins: