@melbatoast4
You can try to create a “Replacement string” with the “Say what?” plugin.
https://ww.wp.xz.cn/plugins/say-what/
Original string:
Your profile is looking a little empty. Why not <a href="%s">add</a> some information!
Text context: Your comments
Text domain: ultimate-member
Hi @melbatoast4
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂
Regards
Hi Vernoica
I have the same question. But is there any way to do this without plugin? I tried to do with the_content filter but didn’t work.
Best Regards
@hasinthawk
You can try this WP filter
/**
* Filters text with its translation for a domain.
*
* The dynamic portion of the hook name, <code>$domain</code>, refers to the text domain.
*
* @since 5.5.0
*
* @param string $translation Translated text.
* @param string $text Text to translate.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
*/
$translation = apply_filters( "gettext_{$domain}", $translation, $text, $domain );
thank you Veronica. Appreciate it!