Skip to:
Content
Pages
Categories
Search
Top
Bottom

Login and Register Shortcode


  • ryuken2
    Member

    @ryuken2

    I am trying to create login box and register link in shortcode function.

    function add_login_form() {
        if(!is_user_logged_in()){
            return wp_login_form();
        }
        else {
            return;
        }
    }
    

    So I get the login box but not sure how to add the bbpress register link if the user is not logged in. code where i want to add the register link along with the loginbox,not sure how to do that. Any pointers or suggestion in code?

    • This topic was modified 1 year, 7 months ago by  ryuken2.
    • This topic was modified 1 year, 7 months ago by  ryuken2.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.