Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    I’m sorry, but the plugin doesn’t support changing the value of the Register button.

    ssiddiqi1

    (@ssiddiqi1)

    You can change the Register to Purchase Tickets through regex. Create a file get-text.php and put the following php code in it. Then in wp-content create a directory mu-plugin and ftp the get-text.php file to mu-plugin directory. The Register will display as “Purchase Tickets” on your WordPress front nd.

    <?php
    function my_em_text_rewrites($translation, $orig, $domain) {
    	switch ($orig) {
    		case 'Register' :
    			$translation = 'Purchase Ticket';
    			break;
    //		case 'Repeat this again for what you want to translate (needs to be exactly same text in english)' :
    //			$translation = 'your text here';
    //			break;
    	}
    	return $translation;
    }
    add_action ( 'gettext', 'my_em_text_rewrites', 1, 3 );
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change "Register" to "Purchase"’ is closed to new replies.