Support » Plugin: User Feedback » Change FEEDBACK Button Text

  • Stephen

    (@stephenpasquini)


    Hi, this is an amazing plugin thank you so much. I want to change the text on the feedback button to say “Report Error” (or something like this). Is there a way to do this? Thank you so much!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @stephenpasquini

    You can change all string via the custom filter user_feedback_script_data. In your case, to change the button label just put this inside your functions.php.

    function custom_user_feedback_script_data( $data ) {  
            $data['templates']['button']['label'] = __( 'Report Error', 'your-textdomain' );  
    
            return $data;
        }
    
        add_filter( 'user_feedback_script_data', 'custom_user_feedback_script_data' );

    This should do the trick.

    Best
    Stefan

    Stephen

    (@stephenpasquini)

    Thank you so much, Stefan, for getting back to me so fast! I tried placing this into functions.php file in my child theme, but nothing happened. Do I need to modify this at all to get it to work on my site? Again, thanks so much for your help.

    Plugin Contributor Pascal Birchler

    (@swissspidy)

    Hey Stephen

    Turns out there was a bug in version 1.1.1 where the user_feedback_script_data filter was accidentally removed and doesn’t work as intended anymore.

    We put the fix for this into our new version which is currently available as a beta. You can download the development version via https://wordpress.org/plugins/user-feedback/advanced/ (link at the bottom). You need to download it from there, delete your current version, and upload the new ZIP file in order to update the plugin.

    Please let us know if there are any questions about that.

    Sorry for the troubles!

    Cheers
    Pascal

    Stephen

    (@stephenpasquini)

    Wow thank you so much, I have to tell you this plugin is a gem! It is exactly what I need. This new version fixes the problem with the senders email not being included with their message. It hangs for about 5-10 seconds after I click send feedback, which will likely confuse some users. Not sure if there is a way to show a message such as “sending” while it is doing this? Great work though, you rock!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change FEEDBACK Button Text’ is closed to new replies.