Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to change the "My designs" link in the Save my designs add-on
add_action( 'init', function () {
// Check that both plugins are active
if ( class_exists( 'MKL\PC\Plugin' ) && MKL\PC\Plugin::instance()->get_extension( 'save-your-design' ) ) {
// Remove the current text
remove_action( 'mkl_pc_frontend_configurator_footer_section_right_before', array( MKL\PC\Plugin::instance()->get_extension( 'save-your-design' )->product, 'add_configurator_button' ) );
// Replace it with the nex text
add_action( 'mkl_pc_frontend_configurator_footer_section_right_before', function() {
<span class="save-your-design-modal-container"><a href="#" class="save-your-design"> (no icon) <span>Saved design</span></a></span>
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment