How to read and write session data?

Assuming you are using WooCommerce (but equivalent to the WC()->cart->is_empty() check can be found for all major well-designed e-commerce plugins): add_action(‘woocommerce_before_checkout_form’,function(){ if (is_user_logged_in()){ $user = wp_get_current_user(); if ( bpprocn_has_incomplete_profile($user->id) ) { // check user’s profile completed or not if ( ! WC()->cart->is_empty() ) { if (wp_redirect(bp_core_get_user_domain( $user->id ) . bp_get_profile_slug() . ‘/edit/group/2’)) exit; } } … Read more

Extending the user profile [closed]

I second what @Viruthagiri said. You can also use the plugin Theme My Login if you want to hide the real WordPress control panel from your users and only show them their own profile/edit profile page, themed just like your site. Best of luck!

What is the php function for “user’s public profile”

For all author meta details you can use the_author_meta http://codex.wordpress.org/Template_Tags/the_author_meta <a href=”https://wordpress.stackexchange.com/questions/37317/<?php the_author_meta(“user_url’, $current_user->ID);?>”><?php the_author_meta(‘display_name’, $current_user->ID);?></a> If its for user meta use get_user_meta http://codex.wordpress.org/Function_Reference/get_user_meta <a href=”https://wordpress.stackexchange.com/questions/37317/<?php echo get_user_meta($current_user->ID,”user_url’);?>”><?php echo get_user_meta($current_user->ID, ‘display_name’);?></a>