Support » Plugin: GiveWP - Donation Plugin and Fundraising Platform » Change table donation history

  • Resolved Mohd syafik

    (@mohd-syafik)


    Dear givewp,
    Need help, in the shortcode donation_history can it change column heading ID into the column heading NAME? if can, can u help me how to do that?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • gsamsmith

    (@gsamsmith)

    Hi there,

    This can be achieved with a code snippet we have available located here:

    https://github.com/impress-org/givewp-snippet-library/blob/master/translation-snippets/simple-translation-snippet.php

    Here’s an example of how that would look for your purposes:

    function my_another_give_text_switcher($translations, $text, $domain)
    {
      // changes the "Donations" text in multiple places
      if ($domain == 'give' && $text == 'ID') {
        $translations = __('Name', 'give');
      }
      return $translations;
    }
    add_filter('gettext', 'my_another_give_text_switcher', 10, 3);

    If you need assistance implementing custom code on your website we have this guide:
    https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/

    Please note that this code snippet is provided as an example of how you can extend Give with code. It’s up to you to implement and customize to your liking. We cannot provide support for custom code on your website, only the code that we create and distribute.

    ​We also recommend you first make these changes on a staging site or local development environment before running this on your live site, to make sure everything goes smoothly.

    • This reply was modified 10 months ago by gsamsmith.

    Hi there,

    I’m going to mark this ticket as resolved, but if there is anything else you need don’t hesitate to reach out.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change table donation history’ is closed to new replies.