Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[Configurator] add html support to layer name
// Add the new label, with html support: {{{ instead of {{
function my_prefix_frontend_configurator_layer_name() {
<span class="text layer-name">{{{}}}</span>
add_action( 'tmpl-mkl-pc-configurator-layer-item-button', 'my_prefix_frontend_configurator_layer_name', 10 );
// Remove the existing label
add_action( 'mkl_pc_frontend_templates_before', function() {
remove_action( 'tmpl-mkl-pc-configurator-layer-item-button', 'mkl_pc_frontend_configurator_layer_name', 10 );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment