Remove the percentage raised, amount raised, and donor count in the stats block of Charitable

Remove the percentage raised, amount raised, and donor count in the stats block of Charitable on child sites.

Snippet Type

Execute on Child Sites

Snippet

function ed_unhook_default_template_functions() {
    remove_action( 'charitable_campaign_summary', 'charitable_template_campaign_percentage_raised', 4 );
    remove_action( 'charitable_campaign_summary', 'charitable_template_campaign_donation_summary', 6 );
    remove_action( 'charitable_campaign_summary', 'charitable_template_campaign_donor_count', 8 );
}

add_action( 'after_setup_theme', 'ed_unhook_default_template_functions', 11 );