Skip Navigation

[Resolved] Can't find where to change this message: No user specified. Need to customize it

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 6.12 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by moomS 10 months ago.

Assisted by: Waqar.

Author
Posts
#2548319

Tell us what you are trying to do?
When a user is not logged in and click on the edit my profile button a message appears: No user specified. I need to change this message.

What is the link to your site?
hidden link

#2548573

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

To change the default message, you can use the 'gettext' filter:
https://developer.wordpress.org/reference/hooks/gettext/

For example:


add_filter( 'gettext', 'custom_cred_form_labels', 20, 3 );
function custom_cred_form_labels( $translated_text, $text, $domain ) { 
    switch ( $translated_text ) {
        case 'No user specified' :
            $translated_text = __( 'New message!', 'wpv-views' );
        break;
    }
    return $translated_text;
}

Please replace 'New message!' in the code snippet with the actual message that you'd like to show.

The above code snippet can be included through either Toolset's custom code feature ( ref: https://toolset.com/documentation/adding-custom-code/using-toolset-to-add-custom-code/ ) or through the active theme's "functions.php" file.

I hope this helps and please let me know if you need further assistance.

regards,
Waqar

#2550617

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.