How do I link a button I created in theme customizer to a function? (1 post)

  1. theman01
    Posted 2 years ago #

    I created a button in the theme customizer using the theme customizer api and I want to use it to execute a function. All I can find is using controls to add theme settings such as CSS and text. Although this button is to clear out all of the settings. Kind of like a theme reset button to revert back to the normal css.

    I need it to execute this code:

    <?php remove_theme_mods() ?>

    I basically just need to link them together. Can anyone assist? Or if anyone knows a better way then I would appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Topic