mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
It needs wcgateway.enabled-ppcp-gateways which calls WC()->payment_gateways->get_available_payment_gateways(), and the hooks inside it can be used by other plugins resulting in warnings about calling functions like get_cart too early One way to fix it is simply to use the wp_loaded hook instead of init, I think it supposed to be a more correct choice if interaction with other plugins (WC) is needed, because it is fired when "WP, all plugins, and the theme are fully loaded and instantiated" |
||
---|---|---|
.. | ||
assets/images | ||
resources | ||
src | ||
.babelrc | ||
composer.json | ||
extensions.php | ||
module.php | ||
package.json | ||
services.php | ||
webpack.config.js | ||
yarn.lock |