Support » Plugin: BP My Home » My profile as My Home by default

  • Resolved investacube

    (@investacube)


    Hi, yet another question I’m afraid. Is it possible to set members profile page as their landing page by default but allow them to deactivate on the front end? I haven’t explained that very well but if possible I want it to work almost in reverse of the current settings

    http://wordpress.org/plugins/bp-my-home/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I suggest you to set the usermeta on first member login using this code in the functions.php of your active theme :

    function investacube_set_myhome_page_at_first_login( $user_id ) {
    	bp_update_user_meta( $user_id, 'bpmh_user_home_page', 1 );
    }
    
    add_action( 'bp_first_activity_for_member', 'investacube_set_myhome_page_at_first_login', 10, 1 );

    Old members won’t be affected, but new one will.

    Sorry to sound so stupid but what line do I put it on – at present the functions.php of my theme file (Infinity) has code on lines 1-23 of 24. Am I in the right place and do I put your code at the end?

    Just before the ?> closing tag if any but yes at the end.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘My profile as My Home by default’ is closed to new replies.