दान संबंधी दस्तावेज़ीकरण

स्पष्ट, चरण-दर-चरण निर्देशों के साथ दान संबंधी का अधिकतम लाभ उठाना सीखें।

Charitable_User

The Charitable_User class allows you to get access to information about a particular user.

Charitable_User is a sub-class of WP_User.

Getting an instance of Charitable_User

Given a user ID, you can retrieve a Charitable_User instance in one of two ways:

$user_id = 123;

// Get instance from cache
$user = charitable_get_user( $user_id );

// Direct instantiation
$user = new Charitable_User( $user_id );

The advantage of using charitable_get_user is that it uses the object cache to retain the instance of Charitable_User.

Properties

Charitable_User has access to all the same properties as WP_User:

https://codex.wordpress.org/Class_Reference/WP_User

Methods

get_donor_id()

Returns the donor ID for this user. If this user has never donated, this will return false.

get_donor()

This returns a single record from the wp_charitable_donor table for the donor.

is_donor()

This returns whether the user is a donor.

is_verified()

This returns whether the user has verified their email address.

mark_as_verified( $verified )

This sets whether the user’s account is verified.

Params
$verified
Boolean. Whether the user’s account is verified.

get_email()

Returns the user’s email address.

get_name()

Returns the user’s full name. Note that if the user has not supplied a first name, only the last name will be returned; and vice versa.

get_first_name()

Returns the user’s first name.

get_last_name()

Returns the user’s last name.

get_location()

Returns the user’s location.

If available, this will show the user’s city, followed by their country; if a city is not set, it will show the user’s state, followed by their country. If neither a city nor state is shown, this will return the user’s country.

If no country is set, just the city or state will be shown.

get_address( $donation_id = '' )

Returns the printable address of the user. If a donation id is specified, this will return the address used for the donation.

Params
$donation_id
Optional. If set, this will return the address for the donation. Otherwise, this will return the address stored in the donor’s profile.

get_donations( $distinct_donations = false)

This will return an array of all donations made by the user.

Params
$distinct_donations
Boolean. If true, this will only show unique donations.

count_donations( $distinct_donations = false)

This returns the number of donations made by the donor.

Params
$distinct_donations
Boolean. If true, this will only count unique donations.

count_campaigns_supported()

This returns the number of campaigns to which the user has donated.

get_total_donated( $campaign_id = false )

Returns the total amount donated by the user, or the total donated to a particular campaign by the user.

Params:
$campaign_id
Optional. If set, this will only get the total amount donated by the donor to the given campaign. By default, this is set to false.

get_avatar( $size = 100 )

Returns the HTML to display the donor’s avatar. By default, this will return the Gravatar associated with the donor’s email address.

Params
$size
Optional. Sets the width & height of the avatar to return. By default, the avatar is returned with a width and height of 100px.

get_avatar_src( $size = 100 )

Returns the image source file of the avatar.

Params
$size
Optional. Sets the width & height of the avatar to return. By default, the avatar is returned with a width and height of 100px.

get_campaigns( $args = array() )

Returns a WP_Query object with all campaigns created by the donor.

Params
$args
Optional. Additional arguments to be passed to WP_Query.

get_current_campaigns( $args = array() )

Returns a WP_Query object with all campaigns created by the donor that are currently active.

Params
$args
Optional. Additional arguments to be passed to WP_Query.

has_current_campaigns()

Returns whether the donor has any current campaigns.

get_activity( $args = array() )

Returns a WP_Query object with all donations and campaigns created by the donor, ordered by date.

Params
$args
Optional. Additional arguments to be passed to WP_Query.

अभी भी प्रश्न हैं? हम मदद के लिए यहाँ हैं!

अंतिम बार संशोधित:

चैरिटेबल में नया क्या है

नवीनतम अपडेट देखें
🔔 हमारे नवीनतम अपडेट प्राप्त करने के लिए सदस्यता लें
📧 ईमेल के लिए सदस्यता लें

ईमेल सदस्यता

हमारे न्यूज़लेटर में शामिल हों

हम आपको स्पैम नहीं भेजेंगे। हम केवल तभी ईमेल भेजते हैं जब हमें लगता है कि यह वास्तव में आपकी मदद करेगा। आप किसी भी समय सदस्यता समाप्त कर सकते हैं!

गिवडब्ल्यूपी माइग्रेशन नया

GiveWP के लिए व्हाइट ग्लोव माइग्रेशन सेवा

अपने फ़ंडरेज़िंग प्लेटफ़ॉर्म को GiveWP से Charitable पर स्विच करने के बारे में सोच रहे हैं, लेकिन अपना डेटा खोने का जोखिम नहीं उठाना चाहते या स्वयं एक जटिल तकनीकी सेटअप को संभालना नहीं चाहते? Charitable की व्हाइट ग्लोव माइग्रेशन सेवा में शामिल हैं:

👥 निर्दोष डोनर मैपिंग: शून्य डेटा हानि के साथ अपने पूरे समर्थक डेटाबेस को सुरक्षित रूप से स्थानांतरित करें।

📊 पूर्ण वित्तीय इतिहास: निरंतर, सटीक रिपोर्टिंग के लिए हर ऐतिहासिक लेनदेन को सावधानीपूर्वक संरक्षित करें।

🔄 निर्बाध आवर्ती दान: अपने आने वाले राजस्व को बाधित किए बिना या अपने दाताओं को अपनी जानकारी अपडेट करने की आवश्यकता के बिना सक्रिय स्थायी सब्सक्रिप्शन को सुरक्षित रूप से स्थानांतरित करें।

💳 शून्य गेटवे व्यवधान: स्ट्राइप, पेपाल, या किसी अन्य GiveWP-संगत प्रोसेसर का उपयोग करना जारी रखें जिसे आप पहले से ही पसंद करते हैं।

🚀 विशेषज्ञ तकनीकी सेटअप: जब हमारी टीम आपके फ़ॉर्म को इंस्टॉल और कॉन्फ़िगर करने का भारी काम संभालती है तो आराम करें—साथ ही, योग्य उपयोगकर्ताओं को Charitable Pro का पूरा साल पूरी तरह से मुफ़्त मिलता है।

अधिक जानने के लिए इस पृष्ठ पर जाएँ

ऑटोमेशन सुधार

📢 नई सुविधा अलर्ट: ऑटोमेशन कनेक्ट 2.0 यहाँ है! 🚀

अपने फ़ंडरेज़िंग डेटा को Mailchimp, Slack, या Google Sheets जैसे टूल से जोड़ने के बारे में सोच रहे हैं, लेकिन डेवलपर को काम पर नहीं रखना चाहते या कस्टम कोड नहीं लिखना चाहते? Charitable के नए ऑटोमेशन ऐडऑन में है:

⚡ 17 इवेंट ट्रिगर: डोनर के पहले उपहार, नवीनीकरण भुगतान, या अभियान मील के पत्थर तक पहुंचने के लिए तुरंत वेबहुक फायर करें।

🎯 स्मार्ट कंडीशनल लॉजिक: केवल तभी डेटा भेजने के लिए 11 फ़ील्ड में शक्तिशाली AND/OR लॉजिक का उपयोग करें जब यह आपकी सटीक शर्तों को पूरा करता हो, जैसे न्यूज़लेटर ऑप्ट-इन।

📊 कस्टम पेलोड नियंत्रण: डोनर, दान और अभियान मेटाडेटा में 80+ क्लीन डेटा फ़ील्ड में से चुनें ताकि आपके ऐप्स को वही मिले जिसकी उन्हें आवश्यकता है।

🚀 प्री-बिल्ट प्लेटफ़ॉर्म टेम्प्लेट: Zapier, Make.com, n8n, HubSpot, और Slack के लिए तैयार टेम्प्लेट के साथ स्क्रैच से सेटअप छोड़ें।

🛡️ विश्वसनीय डेवलपर टूल: हस्ताक्षरित HMAC-SHA256 पेलोड, पूर्ण वर्डप्रेस फ़िल्टर और स्वचालित पुनः प्रयास लॉग के साथ अपने वर्कफ़्लो को पावर दें।

ऑटोमेशन सुधार

🔌 चैरिटेबल ज़ैपियर से जुड़ता है: 7,000+ ऐप्स से कनेक्ट करें और अपने धन उगाहने को स्वचालित करें

दान डेटा को मैन्युअल रूप से अकाउंटिंग शीट में कॉपी करने या नए दाता साइनअप को ट्रैक करने से थक गए हैं? अपने प्रशासनिक कार्यों को ऑटोपायलट पर रखें। चैरिटेबल अब आधिकारिक तौर पर ज़ैपियर पर है, जो आपको अपने धन उगाहने को सीधे अपने पसंदीदा टूल के बाकी हिस्सों में प्लग करने का एक शक्तिशाली, नो-कोड तरीका प्रदान करता है।

हर दान, दाता साइनअप, और अभियान मील का पत्थर अब निर्बाध रूप से एक स्वचालित वर्कफ़्लो को ट्रिगर कर सकता है।

नई क्या है:

♾️ 7,000+ ऐप्स से कनेक्ट करें: अपने चैरिटेबल अभियानों को Google Sheets, QuickBooks, Slack, Mailchimp, HubSpot, Notion, Airtable, और हजारों अन्य जैसे रोजमर्रा के सॉफ़्टवेयर के साथ ब्रिज करें।

⚡ 12 शक्तिशाली ट्रिगर: संपूर्ण दान जीवनचक्र को कवर करने वाले स्मार्ट ऑटोमेशन ट्रिगर का उपयोग करके गहन वर्कफ़्लो बनाएं—जिसमें नया दान, नया दाता, सदस्यता रद्द, और अभियान लक्ष्य तक पहुंचना शामिल है।

📋 पूर्व-निर्मित एक्शन टेम्प्लेट: हमारे पूर्व-निर्मित टेम्प्लेट संयोजनों के साथ तीन मिनट या उससे कम समय में शुरुआत करें, जैसे कि Google शीट में सीधे नए दान लॉग करना या Gmail के माध्यम से कस्टम दाता स्वागत ईमेल भेजना।

🚫 किसी कोड की आवश्यकता नहीं: किसी जटिल वेबहुक या कस्टम PHP स्क्रिप्ट की आवश्यकता नहीं है। बस अपना ट्रिगर चुनें, अपना ऐप चुनें, अपने फ़ील्ड मैप करें, और ज़ैपियर को भारी काम करने दें।

एडमिन समय के घंटों को बचाने के लिए तैयार हैं? आज ही ऑटोमेशन कनेक्ट एडऑन के साथ चैरिटेबल प्रो प्राप्त करें और अपना पहला ज़ैप लॉन्च करें!

सुधार भुगतान

🚀 पेपैल कॉमर्स का परिचय: एक कनेक्शन, दान करने के छह तरीके

दानकर्ता जब किसी कारण का समर्थन करते हैं तो आधुनिक, लचीले भुगतान विकल्पों की उम्मीद करते हैं। यदि वे आपके दान फ़ॉर्म पर अपनी पसंदीदा विधि नहीं देखते हैं, तो वे अक्सर बिना कुछ कहे चले जाते हैं। पेपैल कॉमर्स के साथ, हम आपके अभियानों में एक पूरी तरह से आधुनिक चेकआउट अनुभव ला रहे हैं।

एक एकल एकीकरण का आनंद लें जो आपके फ़ॉर्म को अपग्रेड करता है, दान को निर्बाध बनाता है, और आपको हर एक दान को कैप्चर करने में मदद करता है।

नई क्या है:

🔌 एक-क्लिक कनेक्शन: गंदे एपीआई कुंजी और डेवलपर दस्तावेज़ों को छोड़ें। बस "पेपैल से कनेक्ट करें" पर क्लिक करें, अपने व्यवसाय खाते में साइन इन करें, और आपका आधुनिक फ़ॉर्म पांच मिनट से भी कम समय में लाइव हो जाएगा।

💳 देने के छह तरीके: अपने समर्थकों को पेपैल बैलेंस, वेन्मो (यूएस), पे लेटर फाइनेंसिंग, प्रमुख क्रेडिट/डेबिट कार्ड, एप्पल पे (सफारी), और गूगल पे (क्रोम) सभी एक ही फ़ॉर्म से तुरंत एक्सेस दें।

🔄 लचीला आवर्ती दान: मासिक दान का पूरी तरह से समर्थन करता है। पेपैल सब्सक्रिप्शन एपीआई (पेपैल के अंत में स्वचालित रूप से संभाला जाता है) या वॉल्ट + क्रॉन (सीधे आपकी साइट पर सुरक्षित रूप से संभाला जाता है) के बीच चयन करें।

💬 अनुकूल त्रुटि रिकवरी: कोई और भ्रमित करने वाले ब्राउज़र अलर्ट नहीं। यदि कोई भुगतान अस्वीकृत हो जाता है, तो दानकर्ताओं को सादे-भाषा, इनलाइन संदेश दिखाई देते हैं जो उन्हें समस्या को ठीक करने और अपना उपहार पूरा करने के तरीके के बारे में मार्गदर्शन करते हैं।

पेपैल के लिए तैयार हैं, आधुनिक? चैरिटेबल प्रो 1.8.15+ (या चैरिटेबल लाइट 1.8.11+) में अपडेट करें और आज ही अपना खाता कनेक्ट करें!

अभियान नया

⏳ अभियान काउंटडाउन: तात्कालिकता को बढ़ाएं और दान बढ़ाएं

तात्कालिकता धन उगाहने वाले सबसे शक्तिशाली उपकरणों में से एक है! अभियान काउंटडाउन से मिलें—एक लाइव, वास्तविक समय टाइमर जो टालमटोल को तत्काल उदारता में बदलने के लिए बनाया गया है।

अभियान_काउंटडाउन_एनीमेशन

नई क्या है:

⏱️ लाइव, रियल-टाइम तात्कालिकता: लाइव-अपडेटिंग विज़ुअल काउंटडाउन के साथ अपने अभियान की समय सीमा तक दिनों, घंटों, मिनटों और सेकंडों को खूबसूरती से ट्रैक करें।

🎨 आपके लुक के अनुरूप: बॉक्स्ड बॉर्डर्ड टाइल्स या एक साफ, सिंगल-लाइन इनलाइन डिस्प्ले के बीच चुनें। फ़ॉन्ट और डीप कलर कंट्रोल्स के साथ तुरंत अपने थीम से मिलान करें।

🛠️ कहीं भी रखें: कैंपेन बिल्डर फ़ील्ड, एक समर्पित गुटेनबर्ग ब्लॉक, या एक साधारण शॉर्टकोड का उपयोग करके कहीं भी काउंटडाउन ड्रॉप करें।

🚨 स्मार्ट समाप्ति क्रियाएं: अंतिम स्थिति पर पूर्ण नियंत्रण—टाइमर को स्वचालित रूप से एक कस्टम संदेश से बदलने, इसे शून्य पर फ्रीज करने और बहुत कुछ करने के लिए चुनें।