Ultimate Member Problem

5.73K 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

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.

You are viewing 1 out of 4 answers, click here to view all answers.