Contributors: thewebist
Tags: donations, CPT
Requires at least: 6.0.0
Tested up to: 6.3.1
Requires PHP: 8.0
Stable tag: 3.9.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
A complete donation intake system for WordPress.
- Adding "PriorityPickup" column to CSV export in "My Donations > Donation Reports > Combined Donations" report.
- Adding "Fails" column to "College Hunks API Stats" widget.
- Adding "Note" to the bottom of the "College Hunks API Stats" widget explaining "Fails".
- BUGFIX: Setting required constants to
null
when not set to avoid fatal error upon setup.
- Updating output for
wp dm archive
to correctly show the$donation_stats
that would be written to the database. - Correcting examples in documentation for
wp dm archive
.
- Adding "Fee-Based" option on Step 4 allowing donors to choose whether or not we send their donation to fee-based providers.
- BUGFIX: Accounting for "Pick Up Days of the Week" values stored as "strings" from PMD 2.0 Org imports. Now we set the available pick up days to the default (Mon-Sat) when this happens.
- Now orphaned donations are sent to priority partners using the Email delivery method. Previously, orhpans would only get sent using the API method which meant that only College Hunks would receive orphaned donations.
- Using
usort()
to sort Pick Up Times returned byget_pickuptimes()
.
- Adding "Store Relations" and "Org Page Options" to
lib/acf-json/
. - Correctly retrieving values for Pick Up Days of the Week and Min. Scheduling Interval.
- Updating holiday/restricted pick up dates for the Step 4 screen.
- Adding option to use the Transportation Department's name when displaying to users in the "Select Your Organization" list. This allows us to use one parent Organization for multiple Transportation Departments.
send_email()
now always returns before sending thetrans_dept_notification
if therouting_method
is notemail
.- Setting defaults for Transportation Contact details in the
donor_confirmation
email. - Removing dependency on
get_submit_button()
WP helper function as this function can only be used in an admin context ( see get_submit_button user contributed notes). Was throwing an error when calling via the WP REST API.
- BUGFIX: Correcting variable name to
$is_chhj_pickupcode
insend_api_post()
.
- Adding
wp dm test
foris_valid_pickupcode()
.
- Updatin
send_api_post()
to only post to an external API if the pickup code is valid for the organization. - Adding
is_valid_pickupcode()
for determining if a pickup code is valid given a search string to compare against the returned organizations for the pickup code. - Updating "API Response" column to list available organizations for a given pickup code when no
api_post
meta field value exists.
- Adding
ksort()
to stats displayed bychhj_stats_dashboard_widget()
. - Adding "Success Rate" column to
chhj_stats_dashboard_widget()
.
- BUGFIX: Adjusting switch statement in
lib/fns/apirouting.php
to route donations to the CHHJ API when$routing_method
is also equal tochhj_api
. This is in addition to acceptingapi-chhj
. This fixes the issue where although thetrans_dept_notification
switch inlib/fns/emails.php
was callingsend_api_post()
ifif( 'email' != $donor['routing_method'] )
, the actualsend_api_post()
function did not have a switch statement to handle the PMD 3.0$routing_method
value ofchhj_api
as defined in the ACF Field under each organization's "Pickup Settings".
- Allowing HTML in "Customer Description" field inside
email.donation-receipt.hbs
.
- Accepting
api-chhj
in addition tochhj_api
as valid matching conditions for "Routing Method" column for Organization admin listing.
- Adding "Routing Method" column to Organization admin listing.
- Adding "College Hunks API Stats" dashboard widget.
- Updating "Click to Claim" link text in compiled file.
- Updating link in "Click To Claim" emails from "Click To Claim This Donation" to "View This Donation".
- BUGFIX: Correctly spliting multiple organization emails when sending monthly reports.
- Adding post_type=page as additional display param for City Pages ACF Field Group.
- Updating User Photo Uploads to include an ACF Option for making them required. Now, by default, User Photo Uploads are "optional".
- Removed
get_socialshare_copy()
as it is no longer in use.
- Better response code handling for API Response column in Donation CPT admin listings.
- Adding
custom_column_api_response_content()
to handle display of HTML in the API Response column in admin Donation CPT listings.
- Saving API response code and message as separate fields.
- Better handling of API response data.
- Restoring "Skip Pick Up Dates" functionality.
- BUGFIXES: Checking for variables before using in code.
- Adding option to turn on Debug Mode with Verbose set to ON.
- Checking for variables existence.
- BUGFIX: Checking if variable is_array() before running array_key_exists() in
04.validate-screening-questions.php
. - Checking if array key exists in
describe-your-donation.php
.
- Introducing
DMDEBUG_VERBOSE
constant for "verbose mode" debugging. - Moved several
uber_log()
called into "verbose mode" during the[donationform]
process.
- Bugfix: Addressing correct namespace in
[unsubscribe-orphaned-contact]
shortcode.
- Updating
wp dm fixzips
to work with new PMD 3.0 data structures.
- Updating admin column width for Pickup Codes on Transportation Department CPT listing.
- Updating CHHJ API Response to show plaintext errors stored in
api_response
meta field.
- API Response monitoring via new "API Response" column in the Donation CPT admin listing.
- Removing call to
print_r()
before saving CHHJ API Response.
- Saving CHHJ API Response as serialized array.
- Adding admin CSS for Donation listing and API Response column.
- Updating
wp dm report --type=organizations
to correctly pull data from donations. - Updating
wp dm report
to work without needing to enter a YYYY-MM.
- BUGFIX: Removing orphaned donation note from Exclusive Partners emails.
- BUGFIX: Checking if
$contacts
is null before usingcount()
inget_priority_organizations()
. - Including note in Trans Dept notifications in markets without any contacts.
- Listing orphaned donation notifications in the Donations admin post listing.
- Updating email address in Transportation Department note for Orphaned Donation emails.
- Removing social sharing note from Donor Confirmation email.
- New Feature:
[click_to_claim]
shortcode for processing "Click to Claim" links. - Removing "social sharing" note on donation receipt.
- Adding
get_contact()
for retrieving contact details of Network Providers.
- BUGFIX: Using
DONMAN_DEV_ENV
instead ofWP_DEBUG
to accomodate SpinupWP default settings in production.
- BUGFIX: PHP 8 compatiblity: Removing optional parameter appearing before required parameter in
DonationRouter::save_api_response()
. - Adding WP CLI test for
get_donation_routing_method()
.
- BUGFIX: Fixing
get_donations_by_area()
so that the zip code for a donation is returned to be used in grabbing the coordinates for a donation. - Adding
get_donation_zip_code()
for retrieving a donation's zip code given a Donation ID.
- BUGFIX: Updating
custom_save_post()
to handle integer (i.e. Org ID) returned fromorganization
field.
- Correctly calling
CHHJDonationRouter
from the parent namespace insidesend_api_post()
. - Checking for
$_SESSION['donor']
insend_email()
before setting variables.
- Setting
publicly_queryable
andshow_in_rest
tofalse
for Donations CPT. - Setting
exclude_from_search
totrue
for Donations CPT.
- BUGFIX: Adding PMD 2.0 images.
- Styling/Layout for
[donors_in_your_area/]
. - Correcting namespace function calls in
api.rest.php
for use with[donors_in_your_area/]
. - Adding
stat
attribute to[donation-stats]
for calling "donations-last-month" and "donations-last-month-value".
- Adding
orphaned_donation_exists()
.
- BUGFIX: Refactoring screening questions to work with Taxonomy Order plugin.
- BUGFIX: Checking if variable isset() inside
get_screening_questions()
rather than true/false.
- Setting
DMDEBUG
constant. - DEBUG output for donor emails in
send_email()
.
- BUGFIX: Manually setting ACF Display Rules for City Page Options to include the Page ID for "City Pages" on the production server. By doing this, any time we update the plugin on production, the City Page Options should be properly displayed for child pages of the "City Pages" page.
- BUGFIX: Checking for object before attempting to retrieve object property in
custom_save_post()
.
- BUGFIX: Converting variable assigments to work with ACF true/false fields when working with Organization Pickup Settings.
- BUGFIX: Checking for array in
get_realtor_ads()
.
- BUGFIX: Moving
$template
variable assigment insidelib/fns/shortcode/donationform/default.php
to allow all other steps to properly set their own form templates.
- Setting default initial donation form for
[donationform/]
. - Showing available
template=""
options for initial[donationform/]
option.
- Adding
sort_column
option to[list_pages/]
. - Updating
list_pages()
to useget_posts()
instead ofget_pages()
.
- Adding "Alternate Title" to City Page options.
- Adding
[list_pages/]
shortcode for listing the children of a page.
- BUGFIX: Checking for numeric value before attempting
+=
operation inget_archived_donations()
.
- Adding City Pages sidebar shortcode (i.e.
[city_page_sidebar/]
). - Adding City Pages realtor description shortcode (i.e.
[city_page_realtor_description/]
). - Adding
[donationform template="form0.city-page" /]
template for City Page. - Adding "template" attribute for
[donationform/]
shortcode.
- Adding City Pages ACF fields.
- Updating
lib/fns/admin.php::custom_save_post()
to properly obtain the$org_id
.
- Adding
pickup_code
taxonomy tolib/cpt/
. - Adding Github URL to README.
- Complete rewrite of PMD 2.0.
- Setting up CPTs and Taxonomies inside
lib/cpt/
. - Storing ACF definitions in
lib/acf-json/
. - Dismissable admin notifications.