WooCommerce: Activate and deactivate PayPal Standard

Since WooCommerce 5.5, PayPal Standard will no longer be loaded by default. The official recommendation is using PayPal Payments. Unfortunately, this extension is incompatible with the new Checkout block, that is available since WooCommerce 6.9.

Activating PayPal Standard

Luckily, activating PayPal Standard is pretty straightforward and requires the following steps:

  1. Installing the Code Snippets plugin
  2. Adding the following code snippet:
add_filter( 'woocommerce_should_load_paypal_standard', '__return_true' );

Deactivating PayPal Standard

Unfortunately, deactivating PayPal Standard is a bit more complicated and requires the following steps:

  1. Accessing the database of the site
  2. Deleting the entry woocommerce_paypal_settings from wp_options

Leave a Reply