Skip to content

Instantly share code, notes, and snippets.

@marcusig
Created November 15, 2021 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusig/63e255d0bde20661b37985c9a6281025 to your computer and use it in GitHub Desktop.
Save marcusig/63e255d0bde20661b37985c9a6281025 to your computer and use it in GitHub Desktop.
Product configurator - Add support for HTML in the choice labels
<?php
add_filter( 'tmpl-pc-configurator-choice-item-label', function( $original_label ) {
return '{{{data.name}}}';
}, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment