after_setup_theme
is not the hook you are looking for – you want after_switch_theme
– this hook will only run once, when your theme is initally activated.
after_setup_theme
is not the hook you are looking for – you want after_switch_theme
– this hook will only run once, when your theme is initally activated.