• Resolved fahmineo

    (@fahmineo)


    Hello, this plugin is Great…

    But I need change “Million” to Number only for Amount and Goal..

    How to do that

    Thanks a lot

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Devin Walker

    (@dlocc)

    Hey @fahmineo

    Here you go:

    /**
     * Remove human readable format from goals.
     *
     * @param $human_format_amount
     * @param $amount
     * @param $sanitize_amount
     *
     * @return string
     */
    function my_remove_give_human_readable_filter( $human_format_amount, $amount, $sanitize_amount ) {
    
    	$amount = give_format_amount( $sanitize_amount, array(
    		'sanitize' => false,
    	) );
    
    	return $amount;
    }
    
    add_filter( 'give_human_format_large_amount', 'my_remove_give_human_readable_filter', 10, 3 );

    Just add this code to your site. If you’re not sure how to do that check out this article: https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/

    Thanks for your question!

Viewing 1 replies (of 1 total)
  • The topic ‘How to change “million” to number only’ is closed to new replies.