Move loop_end hook as it is generic and used in all WP loops