How do I link a button I created in theme customizer to a function?
-
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.
- The topic ‘How do I link a button I created in theme customizer to a function?’ is closed to new replies.