Hi,
I've seen somewhere that it could not be possible, but my website (intras.fr) already get hundred of profiles pages, well referenced. I just have created some forums using the (very good) WPForo plugin, but it creates many new profiles pages.
My profiles pages are custom one and I don't want to change them !
Is it possible to create something like "add action" with some function ?
Thanks for your answer and sorry for any mistakes, my native language is french.
Hi @geve2009,
Yes that's possible. Please leave your website URL and some example of the profile pages.
Hi,
website url with your forum : https://www.intras.fr/forum/forum-formation/
Examples of profile page :
https://www.intras.fr/formateurs/fiche-membre/?ID=37
and
https://www.intras.fr/freelances/profil-freelance/?ID=463
This is depending on user's role.
Thanks for any help 🙂
You should only change the profile page, but leave the Account, Subscription and Activity Menus. They are forum specific pages and your forum users will not be able to change account information in forum.
To replace profile URLs to your custom profile URLs put this code in your active WordPress theme functions.php file:
function change_wpforo_profile_to_custom_url( $url = '', $member = array(), $template = 'profile' ){
if( wpfval($member, 'ID') ){
return get_option('siteurl') . '/formateurs/fiche-membre/?ID=' . $member['ID'];
}
return $url;
}
add_filter( 'wpforo_member_profile_url', 'change_wpforo_profile_to_custom_url', 10, 3 );
How to Easily Add Custom Code in WordPress (without Breaking Your Site)