Posted: March 9, 2016 at 2:30 pm
|
https://eventespresso.com/topic/wp-user-change-is-available-to-members-only/ I had this issue before and tech support in the thread linked above gave me a function that changed the text I needed brilliantly.. but now I’m noticing that it no longer is working. Is there an updated function that I can add to my site specific plugin so I can change the text for events? Here is my current function: // This is an array of original strings // See if the current string is in the $strings array return $translated; |
Hi there, When posting code we recommend using something like pastebin.com or creating a gist to add the code to and post the url here, the forum alters the formatting of your code, for example single quotes like It could be the forum altering the formatting here but if you notice in my example here: https://eventespresso.com/topic/wp-user-change-is-available-to-members-only/#post-180663 The original string has 2 spaces after Also, there should be one more line of code after that which would be:
I’m guessing that is actually there you just didn’t include it but wanted to make sure as it will not work without it. |
|
|
Aha! I must have over-written the last line of code.. I added it back and it worked. Thank you again. You guys rock! |
You’re most welcome 🙂 I’m glad it now works, please do let us know if you have any further problems. |
|
|
I was just asked today to change the text where it reads: “Goes on Sale”.. to “Will be Available” Can I please have a script to change that text as well please? |
You can translate multiple strings within that same function, the strings are added to an array and the function loops over all of them, so it currently has:
You can change that to:
That will translate both the strings for you. |
|
|
Worked perfectly again. Thanks again for your help on this.. I’m PHP illiterate, so your help is very greatly appreciated! |
Hi Freddys, Did you have any other questions about changing the messaging/verbiage that is used in Event Espresso? Thanks — |
|
|
Not right now.. but thank you for asking. You guys are the best! |
Thank you 🙂 I’ll mark this thread resolved, please feel free to open up another if you have any further questions. Have a great day. |
|
The support post ‘WP User – change "is available to members only." again’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.