Technically to check if theme runs wp_head
and wp_footer
hooks you can:
- hook into
shutdown
- check that you are in front end
- use
did_action()
to determine if hooks fired - save the result (in option for example) with theme name to access and use later
However in practice I agree with Chip Bennet that these hooks are essential. Trying to code for case when they are not there is simply not practical (same like trying to code for ancient WP version and such).