Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
You are here: Home

gumatera

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 12, 2021 at 7:36 am in reply to: PDF – Stamper – Begginer Help – Stamping Username #83328
    gumatera
    Participant

    Find the solution below. Tested and verified!

    ///////////////////////////////////////

    add_filter(‘filter_stamper_text_after_replacing_tags’, ‘customize_text_to_stamp’, 10, 2);

    function customize_text_to_stamp ($text_to_stamp, $additional_params)
    {

    $current_user = wp_get_current_user();

    // Which you want to dispaly you can set below type

    // $current_user->first_name //First Name of login User
    // $current_user->last_name //Last Name of login User
    // $current_user->display_name // Name of login User
    // $current_user->user_email // Email

    $text_to_stamp .= “Some text here” . $current_user->user_login . “some text here”;

    return $text_to_stamp;
    }

    July 9, 2021 at 11:25 am in reply to: PDF – Stamper – Begginer Help – Stamping Username #83315
    gumatera
    Participant

    I sent a new reply, but I dont see it here…

    July 8, 2021 at 9:16 pm in reply to: PDF – Stamper – Begginer Help – Stamping Username #83312
    gumatera
    Participant

    Thanks for your support!

    Yes, I am using the custom button. But I couldn’t find any variable available to stamp the Current-Username.

    {Customer name} does not return current-username, right?

    What I want is: From the Download Button, a logged-in user will download a PDF file with his username and email displayed in file’s footer in a sentence like “Licensed to gumatera – guma@gmail.com by Company.”

    I dont know how to get the current username and use it in the wp filter (article link above) as $text_to_stamp .= “Licensed to %current_username% – %current_user_email% by Company.”;

    I mean, I dont know the query to get the current user name and HOW to insert the username and email in this sentence to be displayed…

    July 8, 2021 at 4:39 pm in reply to: PDF – Stamper – Begginer Help – Stamping Username #83308
    gumatera
    Participant

    From WP.

    July 8, 2021 at 3:42 pm in reply to: Ö Ä Ü – How to define Special Letters (North Europe) ? #83303
    gumatera
    Participant

    Oh, I forgot to say the problem occurs even if “Use UTF-8 Font” option is checked.

    July 8, 2021 at 3:40 pm in reply to: Ö Ä Ü – How to define Special Letters (North Europe) ? #83302
    gumatera
    Participant

    Hi there, I have the same problem.

    In plugin Settings > Text to Stamp, the original text “Versão gerada para” is stamped as “Versão gerada para”.

    On my website all PDFs are generated by the button [stamper_download_button_for_wp_user]

    The problem occurs even if “Use UTF-8 Font” option is checked.

    • This reply was modified 3 years, 10 months ago by gumatera.
  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ