something like is_childtheme() April 17, 2022 by Tarik Billa As One Trick Pony said, there’s a dedicated function (since WP 3.0): is_child_theme()