Is it possible to disable a theme programmatically?
here is no specialized hook for this. However the hook switch_theme should work for you. /** * Switches current theme to new template and stylesheet names. * * @since unknown * @uses do_action() Calls ‘switch_theme’ action on updated theme display name. * * @param string $template Template name * @param string $stylesheet Stylesheet name. */ … Read more