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

Warning at top of website & top menu gone

This function, call_user_func_array() is called by add_filter() (or add_action()) that was not declared properly. Scan the code for something like: add_filter(‘something’, ‘smartwp_remove_wp_block_library_css’) to find the culprit. If you do find it and it wasn’t something you added/changed, you will have to troubleshoot to determine why this function was not declared/found. The top menu is still … Read more