Ultimate Member Problem

9.06K viewsUpdates
1

With last update 2.4 i can’ use anymore this solutions for ultimate member.

/**
 * This filter will disable AnsPress user profile
 */
add_filter( 'ap_user_profile_active', '__return_false');
/**
 * This will override default AnsPress user page link
 * @param  integer $user_id User id.
 * @return string
 */
function my_custom_profile_link ($user_id) {
	return home_url('/user/').$user_id;
}
add_action( 'ap_user_custom_profile_link', 'my_custom_profile_link' );

And when i try to open some profiles report me 404 error.

How i can fix this problem now?

0

Can confirm its now broken no matter what

0

Oh ultimate member is not there only userpro and BP. Try select blank option in user profile and your previous hook will work.

Notthing. After this update don’t work anymore, can u help me for find a solution please?

Follow what I said, it works. I just tried.

0

Simply go to AnsPress option -> users and select Ultimate member as your profile:

Notthing. Still don’t work with ultimate member.
Actually, i can’t select ultimate member, but just: BuddyPress, Anspress, empty and User Pro