/** * Verifies whether the current user can access the donation receipt. * * @param Charitable_Donation $donation * @return boolean * @since 1.1.2 */ function charitable_user_can_access_receipt(Charitable_Donation $donation) { charitable_get_deprecated()->deprecated_function(__FUNCTION__, '1.4.0', 'Charitable_Donation::is_from_current_user()'); return $donation->is_from_current_user(); }