Support

Home Forums WP User Integration WP User Integration shortcode wording

WP User Integration shortcode wording

Posted: March 15, 2016 at 12:42 pm

Viewing 3 reply threads


KIROS

March 15, 2016 at 12:42 pm

Hi there! We recently installed the wp-user-integration addon and wanted to change some wording. When a user who isn’t logged in is greeted with “Login to see your registrations” we’d like to change that to a custom message. I’ve scoured the code looking for that specific variable but can’t find it. Can you point me in the right direction? Thank you!


Tony

  • Support Staff

March 15, 2016 at 1:08 pm

Hi Kiros,

The code is within the EE4 user Integration add-on (incase your looking for it within the core plugin).

The string you need to translate is ‘Login to see your registrations.’ (not the full stop/period at the end, its needed for the translation)

Do you already have a custom function your are using for translations or are you using the PO/MO files?


KIROS

March 15, 2016 at 1:19 pm

I need to create one. Can I get the name of the file itself? I am looking in the addon files it just seems like I can’t find it. Thanks!


Tony

  • Support Staff

March 15, 2016 at 1:34 pm

If you alter core files (even changing text), we can not provide support so I advise against doing so.

You can use the function shown here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function

Place that within a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Then add the strings to that function, so to change just that string within the function you could use:

$strings = array(
   'Login to see your registrations.' => 'Your custom text.',
   // Add some more strings here
);

Like this – https://gist.github.com/Pebblo/317d101f3544bade859d

That will translate the phrase to ‘Your custom text.’ but you can change that and does not alter EE core files 🙂

Viewing 3 reply threads

The support post ‘WP User Integration shortcode wording’ 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.

Event Espresso