Viewing 3 replies - 1 through 3 (of 3 total)
  • With version 1.7 of the plugin, this change is pretty easy to do. Adding something like the following code to your theme (or a separate plugin) will do what you want.

    function my_email_tag_loginurl( $attributes ) {
    	return home_url();
    }
    function my_email_tags( $email_tags ) {
    	foreach( $email_tags as &$tag ) {
    		if ( $tag['tag'] == 'login_url' ) {
    			$tag['function'] = 'my_email_tag_loginurl';
    			continue;
    		}
    	}
    
    	return $email_tags;
    }
    add_filter( 'nua_email_tags', 'my_email_tags' );
    Thread Starter remymedranda

    (@remymedranda)

    Thank you Josh that worked.

    About what plugin are you guys talking? It seems this is a solution to my problem…
    @josh Harrison, in your code its

    function my_email_tag_loginurl( $attributes ) {
    	return home_url();
    }
    function my_email_tags( $email_tags ) {
    	foreach( $email_tags as &$tag ) {
    		if ( $tag['tag'] == 'login_url' ) {

    where is says if ( $tag['tag'] == 'login_url' ) do i replace the “login_url” with a www url?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change the login url that appears in the approval email’ is closed to new replies.