- This topic has 1 reply, 2 voices, and was last updated 4 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › Customize shortcode (not in the language file)
Tagged: customize shortcode
I am finding the process of customizing shortcodes as laid out here (https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin) very frustrating, and I can’t believe it’s so difficult to do.
Where can I access which parts of the language file the shortcode is calling? I want to modify the shortcode itself.
I’m looking at this text:
Please Login to view this content. (Not a member? Join Today!)
I don’t want to use this on my site. I don’t want to say “Please” with a capitalized “Login” next to it. I don’t want the member text, but if I remove it, then I’m left with ().
I am willing to customize the text in the language file but there are some parts like Please and () that I don’t want it to pull for this shortcode. Where can I find the actual call from the shortcode to the language text that I can modify?
In the language file, there is a “string name” for each text string. For instance; EMEMBER_PLEASE represents the text string “Please” as in:
define("EMEMBER_PLEASE", "Please");
Now, using a file text search utility, like “grepwin,” search the main plugin directory for all occurrences of EMEMBER_PLEASE and edit the file(s) as appropriate.