• Resolved ronr1999

    (@ronr1999)


    Might I suggest, in your messages.php file you add a link to REGISTER:

    function nua_default_welcome_message() {
    	$welcome = sprintf( __( 'Welcome to {sitename}. This site is accessible to approved users only. To be approved, you must first <a style="text-decoration:none;font-weight:bold;" href="' . site_url() . '/wp-login.php?action=register">REGISTER</a>.', 'new-user-approve' ), get_option( 'blogname' ) );
    
    	$welcome = apply_filters( 'new_user_approve_welcome_message_default', $welcome );
    
    	return $welcome;
    }

    https://www.ads-software.com/plugins/new-user-approve/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Not a bad idea. I’ll consider it for an upcoming release.

    I like the idea too, i found this thread while checking if i could hook onto the filter “new_user_approve_welcome_message_default” to add a custom registration link.

    So thanks to the use of the filter, customizing that “register” text was as easy as adding this to my theme’s functions.php file. (you could put it in a plugin too)

    function my_add_join_link($message){
    	return str_replace('register','<a href="/my-join-slug/">register</a>',$message);
    }
    
    add_filter('new_user_approve_welcome_message_default','my_add_join_link');

    hope this helps somebody!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestion: add a register link’ is closed to new replies.