In some cases it's not enough to check for file or slug, because a customer/client might rename the plugin/theme for client usage.
For example, the "WeFoster" theme becomes "OurClient". In that case it would make sense to be able to check for function/class.
In some cases it's not enough to check for file or slug, because a customer/client might rename the plugin/theme for client usage. For example, the "WeFoster" theme becomes "OurClient". In that case it would make sense to be able to check for function/class.