WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Edit the phrase "Ticket Type" on event pages (4 posts)

  1. John O
    Member
    Posted 5 months ago #

    Hi,

    My client would like me to change the phrase "Ticket Type" to "Delegate Pricing". Is this possible, and if so, how would I go about it? Is there a way to do it via functions.php rather than editing core files in the plugin?

    Thanks in advance!

    John

    http://wordpress.org/plugins/events-manager/

  2. caimin_nwl
    NetWebLogic Support
    Posted 5 months ago #

    Hi John,

    Yes, this should work:

    function my_em_text_rewrites($translation, $orig, $domain) {
    	str_replace('Ticket Type','Delegate Pricing', $translation);
    	return $translation;
    }
    add_action ( 'gettext', 'my_em_text_rewrites', 1, 3 );
  3. angelo
    NetWebLogic Support
    Posted 5 months ago #

  4. John O
    Member
    Posted 4 months ago #

    The first example didn't work, but the pastebin snippet worked a treat. Thanks so much.

Reply

You must log in to post.

About this Plugin

About this Topic