running a function on theme activation in functions.php
I’ve made plugins before that ran a function on plugin activation, by hooking into the activate action, like this:
but I was wondering if there was a action I could hook into to run a function in the functions.php file of a theme, to run that function when the theme is activated (specifically, to build a table in the database).
Can anyone help?
- The topic ‘running a function on theme activation in functions.php’ is closed to new replies.