Support

Home Forums Event Espresso Premium Change "show details" and "hide details" link text on ticket selector

Change "show details" and "hide details" link text on ticket selector

Posted: November 2, 2016 at 1:32 pm

Viewing 2 reply threads


Tad Heigel

November 2, 2016 at 1:32 pm

Hi,

I am trying to change the text of the “Show Details” and “Hide Details” link on the ticket selector. I looked into your code and see available filters to hook into the the link titles, but the actual text of the link itself has no hook. Could you all add these filters please? If not, how would I go about changing this text without editing the core plugin files or having to manually update my edited code every time a release is pushed? NOTE: I tried creating a filter to search for and replace this string, but my efforts failed. =/

Any help is appreciated. Thanks!


Tony

  • Support Staff

November 2, 2016 at 3:35 pm

Hi Tad,

I can create a ticket to request filters for the link text, however it possible to change the text already by ‘translating’ the string to whatever you prefer.

You can use the function shown here:

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

The strings you need to target are 'show%1$sdetails%1$s+' & 'hide%1$sdetails%1$s-' so your $strings array would look something like:

$strings = array(
       'hide%1$sdetails%1$s-' => 'hide%1$sstuff%1$s-',
       'show%1$sdetails%1$s+' => 'show%1$sstuff%1$s+',
       // Add some more strings here
    );

That would change the strings to ‘show stuff +’ and ‘hide stuff -‘

The %1$s are placeholders which in that case are for   (a space)

Does that help?


Tad Heigel

November 7, 2016 at 12:10 pm

Hi Tony. Please notify me if a filter gets added. And thanks for the help. Your recommendation worked.

Viewing 2 reply threads

The support post ‘Change "show details" and "hide details" link text on ticket selector’ 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