Viewing 3 replies - 1 through 3 (of 3 total)
  • Suggestion: Add language translations or an a method to change the display text.

    As others suggest, It would be grate to put the text in a get_text function, so it will be translatable.
    In class-frontend.php in line 24:

    $btn = '<!-- WhatsApp Share Button for WordPress: https://peadig.com/wordpress-plugins/whatsapp-share-button/ --><div class="wabtn_container"><a href="whatsapp://send?text='.get_the_title().' - '.get_permalink().$tracking.'" class="wabtn">Share this on WhatsApp</a></div>';

    Add the get_text call:

    $btn = '<!-- WhatsApp Share Button for WordPress: https://peadig.com/wordpress-plugins/whatsapp-share-button/ --><div class="wabtn_container"><a href="whatsapp://send?text='.get_the_title().' - '.get_permalink().$tracking.'" class="wabtn">' . __("Share this on WhatsApp") . </a></div>';

    Upvote for this request.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change the Share button display text’ is closed to new replies.