Charitable::DONATION_POST_TYPE, 'posts_per_page' => 5, 'post_status' => array_keys( $charitable_statuses ), 'fields' => 'ids', ); $charitable_donation_args = apply_filters( 'charitable_donations_widget_summary_donation_args', $charitable_donation_args ); $charitable_donations = get_posts( $charitable_donation_args ); $charitable_table = charitable_get_table( 'campaign_donations' ); $charitable_today = $charitable_table->get_donations_summary_by_period( apply_filters( 'charitable_donations_widget_summary_today', wp_date( 'Y-m-d%' ) ) ); $charitable_this_month = $charitable_table->get_donations_summary_by_period( apply_filters( 'charitable_donations_widget_summary_this_month', wp_date( 'Y-m%' ) ) ); $charitable_last_month = $charitable_table->get_donations_summary_by_period( apply_filters( 'charitable_donations_widget_summary_last_month', wp_date( 'Y-m%', strtotime( '-1 month' ) ) ) ); $charitable_this_year = $charitable_table->get_donations_summary_by_period( apply_filters( 'charitable_donations_widget_summary_this_year', wp_date( 'Y-%' ) ) ); ?>

amount ) ); ?>

today', '%d donations today', $charitable_today->count, 'charitable' ) ), intval( $charitable_today->count ) ); ?>

amount ) ); ?>

this month', '%d donations this month', $charitable_this_month->count, 'charitable' ) ), intval( $charitable_this_month->count ) ); ?>

amount ) ); ?>

last month', '%d donations last month', $charitable_last_month->count, 'charitable' ) ), intval( $charitable_last_month->count ) ); ?>

amount ) ); ?>

this year', '%d donations this year', $charitable_this_year->count, 'charitable' ) ), intval( $charitable_this_year->count ) ); ?>

get_date() ); ?> #get_number() ); ?> get_status_label() ); ?> get_total(), false, true, $charitable_donation->get_currency() ) ); ?>