How to do something once when theme is activated
-
I know how to do stuff, but I need to do it only once when a theme is activated.
In my theme’s functions file, I want to put something that says:
when this theme is first activated {
DO THIS STUFF ONCE
}
and do no tdo it again.I have searched hooks, filters and forums and am stuck.
Any help appreciated.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to do something once when theme is activated’ is closed to new replies.