Set the PayPal load flag on install
This commit is contained in:
parent
3099f672cb
commit
7f4f165cc0
|
@ -310,6 +310,7 @@ class WC_Install {
|
|||
self::create_files();
|
||||
self::maybe_create_pages();
|
||||
self::maybe_set_activation_transients();
|
||||
self::set_paypal_standard_load_eligibility();
|
||||
self::update_wc_version();
|
||||
self::maybe_update_db_version();
|
||||
|
||||
|
@ -1622,6 +1623,16 @@ CREATE TABLE {$wpdb->prefix}wc_reserved_stock (
|
|||
ob_end_clean();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether PayPal Standard will be loaded on install.
|
||||
*
|
||||
* @since 5.5.0
|
||||
*/
|
||||
private static function set_paypal_standard_load_eligibility() {
|
||||
// Initiating the payment gateways sets the flag.
|
||||
WC()->payment_gateways();
|
||||
}
|
||||
}
|
||||
|
||||
WC_Install::init();
|
||||
|
|
Loading…
Reference in New Issue