Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity page questions


  • cstangor
    Participant

    @cstangor

    New user here,

    Can the general public see the posts on my activity page? Can I turn that off?

    If I leave it open to view, how can I put a register button on the activity page?

    Thanks in advance.

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    By ‘general public’ you mean visitors who are not logged in?
    If so, why not hide entirely all user profiles.
    Assuming that your register page slug is register, something like:

    function cstango_redirect_to_reg() {
    
    	if ( ! is_user_logged_in() ) {
    
    		if ( bp_is_user() ) {
    
    			bp_core_redirect( site_url('register') );
    
    		}
    
    	}
    }
    add_action( 'bp_ready', 'cstango_redirect_to_reg' );

    Place the code in your theme > functions.php

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar