Do not register admin components if not in WP admin