This filter hook helps you modify the profile permalink for users which is the frontend user profile by default. For example, If you want to convert all frontend profile links to specific user pages (Author archive, etc.)
Usage Example
Here is an example of using this hook to modify the profile permalink to author archive URL dynamically.
1 2 3 4 5 6 7 8 9 10 |
<?php add_filter('userpro_user_profile_url', 'userpro_author_url', 99, 2); function userpro_author_url($link, $user_id) { return get_author_posts_url( $user_id ); } ?> |
Leave A Comment?