Install theme as part of a plugin October 24, 2022 by Tarik Billa It looks like the function register_theme_directory can be used for this purpose.