Use this filter to import Square product descriptions as plain text instead of HTML.
Note:
This is a Developer level doc. If you are unfamiliar working with code and resolving potential conflicts, we recommend you work with a Woo Agency Partner for larger projects, or find a WooCommerce developer on Codeable for smaller customizations. We are unable to provide support for customizations under our Support Policy.
Disable HTML descriptions
↑ Back to topAdd this filter to a custom plugin on a staging site. It disables HTML description handling for product data received from Square.
<?php
add_filter( 'wc_square_enable_html_description', '__return_false' );
Verify the result
↑ Back to topSync a linked test product whose Square description contains formatting, and check its description in WooCommerce. Remove the filter to restore HTML handling on subsequent syncs. Test before deploying because this change can remove formatting from synced descriptions.