Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set User Profiles As Private By Default After Registeration.
<?php
/**
* Set User Profiles As Private By Default After Registeration.
*/
function yzc_set_users_profile_as_private_after_registration( $user_id ) {
update_user_meta( $user_id, 'yz_enable_private_account', 'on' );
}
add_action( 'bp_core_signup_user', 'yzc_set_users_profile_as_private_after_registration' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment