Yup, there’ll be no link when the user doesn’t fill in that field or when leaving a comment as a guest.
As far as redirecting comment links to the bbPress profile goes, popping this in your functions.php should do the trick:
/**
* Redirect user links in comments to BBPress profile
*
* @param object $comment
* @return object
*/
function wpse425792_comment_author_url($comment) {
if ( $comment->user_id && function_exists( 'is_bbpress' ) ) {
$comment->comment_author_url = bbp_get_user_profile_url( $comment->user_id );
}
return $comment;
}
add_filter('get_comment', 'wpse425792_comment_author_url');
[Edited to add a missing “)” on the “if” line. This note added to get around the “Edits must be 6 characters” problem.]
Related Posts:
- How to make current user’s avatar + display name link to their profile?
- I need a link that directs the user that is logged to his profile
- How to create a link to a user’s profile page
- Make display name unique
- How to create a public profile for authors/contributors/users?
- Force users to complete their profile after they register? How to
- Upload gravatar in WP profile?
- add ‘file upload’ field to user details
- Completely hide user info
- Drop down list in user profile page
- Custom style on profile options page
- Add custom fields to the user profile
- Cannot set user passwords
- Is there any function available to echo current user’s profile url?
- How to add local users to wordpress without email password?
- Disable user profile editing for one user
- how to make a profile entry read only except for site managers [closed]
- Forcing WordPress to work differently
- Remove user profile field [duplicate]
- How to add a user profile page to frontend?
- Is there a way to make custom fields only editable by administrators?
- Including users in insert link internal link search in Gutenberg
- Editable registration date field in user profile
- Profile page for user roles
- User profile updates password even if not filled (Theme my login) in Firefox? [closed]
- How to Create a User Profile Page?
- Prevent subscribers to changing certain profile fields
- Creating User Profiles using author.php
- Create a “user log”
- How to display text if profile fields are not filled?
- What is correct way to change user’s email?
- How to set all external links from a certain user to “nofollow”?
- How to hide user profile fields based on the role of the viewed user?
- Give users alternative/second avatar that is rectangle sized
- User can manage one page accessible by everyone?
- redirect user to their profile after log in
- How to display all user profile info in myaccount page wordpress
- How to add extra field in profile page and show in myaccount?
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- How do I update user email from frontend input field?
- How to display extra fields for user
- How can i display pagination in custom comment list?
- How can i add user display name drop down menu in frontend?
- How to create page for user?
- How to make custom user profile page public?
- update custom field user profile from front end form
- Require confirmation of current user’s email before updating database and before send_email_change_email
- Showing extra profile fields in admin – problem with underscore
- Restrict Access to the User Profile
- Add an ‘edit profile’ page with Genesis
- Manage user profiles with WordPress
- Separate Profiles for Users
- Fetching posts that match a User Profile setting
- Validate user meta and redirect
- Designing a member area on my site
- Storing additional information about the user
- Modify Profile Biographical Info Field
- How to create front-end (editable) WordPress user profile pages?
- Securely log in a user without a password using a link?
- Disable editing profile for second time
- What techniques can a user employ to achieve a password rated “strong” in the WordPress password checker
- Cant edit profile from frontend
- Can we get user profile page using user_id in the URL?
- Email user when password is reset by admin
- How to work around “that email address has already been used” error?
- How can I run a WP-CLI command as authenticated user?
- How to Prevent deleting user accounts in WordPress Back-end?
- LEFT JOIN, INNER OUTER JOIN, LEFT OUTER JOIN is driving me crazy. Please help?
- WordPress edit_user_profile_update update secondary role
- Check if user is online?
- Is it possible to duplicate users on a new WordPress install?
- Why don’t first_name and last_name appear when you print_r the WP_User object?
- How to use search_columns in WP_User_Query?
- WordPress to use Drupal users’ credentials
- WP User Query fails when searching meta queries and search columns
- Call to undefined function wp_insert_user()
- Error: How to allow the “contributor” to upload media in wordpress
- how to know when the user is in specific part of the website and when he leaves that part and display the data in the admin dashboard
- Register user when after filling contact form
- Is possible to allow user to login with different role?
- Creating user without username and password
- Check for valid email after user inactivity?
- How to check User Role and redirect to specific page according to Role when login in WordPress?
- how to set default update_user_meta values wordpress
- Fix ‘Add Role’ Option not there in wordpress 5.2.2
- Get user id after save post
- Redirect user to login if not logged in, on specific pages
- Followers for WordPress [duplicate]
- Is there a way to rate users instead of posts?
- Is there a way to call via javascript if a user is logged-in on a static html file?
- Is this a hack? WordPress Usernames of every website we have changed into one single name automatically?
- Getting user data via ajax
- The same session information for peer users on two different WordPress servers
- Custom User Page
- Browser extension to allow users to submit posts front end
- Changing the admin User Profile page
- Displaying custom profile fields using Mingle Plugin
- How to get current user ID in array meta_value?
- MySQL query to list users who never signed in
- Send email to user if their role is changed to Author