Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add woocommerce_paypal_payments_single_product_disable_render filter WIP #339

Conversation

helgatheviking
Copy link
Contributor

Description

Add a filter that will allow other plugins to conditionally disable the payment request buttons for single products that cannot support them.

Steps to test:

add_filter( 'woocommerce_paypal_payments_single_product_disable_render', '__return_true' );

Should turn off payment request buttons on single products even if they are enabled in the admin.

Documentation

  • This PR needs documentation (has the "Documentation" label).

Changelog entry

Add woocommerce_paypal_payments_single_product_disable_render filter

Closes #234.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] Disable PayPal Smart buttons for specific product types
1 participant