Home / Archive / Add Pending To Approved Statuses
Duplicate Snippet

Embed Snippet on Your Site

Add Pending To Approved Statuses

Make the "Pending" status an approved statuses, so that it is counted in the campaign funds raised.

Code Preview
php
<?php
/**
 * Make the "Pending" status an approved statuses, so that it is counted in the campaign funds raised.
 */
function ed_add_pending_to_approved_statuses( $statuses ) {
    $statuses[] = 'charitable-pending';
    return $statuses;
}
add_filter( 'charitable_approval_donation_statuses', 'ed_add_pending_to_approved_statuses' );

Comments

Add a Comment