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

Ver 6.9.0 breaks 'Filter where the WooCo checkbox will go' feature #919

Open
njwgh opened this issue Mar 26, 2024 · 0 comments
Open

Ver 6.9.0 breaks 'Filter where the WooCo checkbox will go' feature #919

njwgh opened this issue Mar 26, 2024 · 0 comments

Comments

@njwgh
Copy link

njwgh commented Mar 26, 2024

I use the option to filter where the checkbox will go in the woocommerce checkout, using this code:

add_filter( 'yikes-mailchimp-wooco-integration-checkbox-checkout-fields', '__return_false' );

add_filter( 'yikes_mailchimp_wooco_integration_placement_filter', 'yikes_mailchimp_change_wooco_checkbox_placement', 10, 1 );
function yikes_mailchimp_change_wooco_checkbox_placement( $placement ) {
    return 'woocommerce_before_order_notes'; 
}

This works fine in version 6.8.10, but when I update to version 6.9.0, the actual checkbox no longer shows.
The text label is there but no checkbox.

I assume this is because the checkbox is being output with html and that has been sanitized by the #917 pull request

This code gets lost from the output html:

<input type="checkbox" name="yikes_mailchimp_checkbox_woocommerce_checkout_form" value="1">

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

No branches or pull requests

1 participant