Created
May 26, 2016 18:12
-
-
Save scottopolis/cacb5fff5747a65768c807b023b1b9f6 to your computer and use it in GitHub Desktop.
Add BuddyPress register link to login modal for AppPresser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Author: Scott Bolinger https://apppresser.com | |
/* Add register link to login modal */ | |
add_action( 'appp_login_modal_after', 'app_register_link' ); | |
function app_register_link() { | |
if( is_user_logged_in() ) | |
return; | |
echo '<a href="' . home_url() . '/' . BP_REGISTER_SLUG . '" class="register-link">Register</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment