mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +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" |
||
---|---|---|
.. | ||
ppcp-admin-notices | ||
ppcp-api-client | ||
ppcp-button | ||
ppcp-compat | ||
ppcp-onboarding | ||
ppcp-order-tracking | ||
ppcp-session | ||
ppcp-status-report | ||
ppcp-subscription | ||
ppcp-uninstall | ||
ppcp-vaulting | ||
ppcp-wc-gateway | ||
ppcp-webhooks | ||
woocommerce-logging |