I need help changing the profile links in this plugin
-
Hi I noticed that it says you added a filter for this in the php file or at least I think that’s what it meant in the updates and I found the function but I just don’t understand what I need to change.
I need to change the /author/ link in the widget to /members/ to match buddypress links. I am assuming it is this code I need to change right?
* Return HTML for a single blog user for the widget. * * @uses apply_filters() Calls 'wpwhosonline_author_link' on the author link element * @return string HTML for the user row */ function wpwhosonline_user( $last_online_ts, $user ) { $avatar = get_avatar( $user->user_email, 32 ); $name = $user->display_name; $link = '<a href="' . get_author_posts_url( $user->ID, $user->user_nicename ) . '" title="' . esc_attr( sprintf(__("Posts by %s"), $user->display_name) ) . '">' . $name . '</a>'; $link = apply_filters( 'wpwhosonline_author_link', $link, $user );
where exactly do I edit and how would I edit this link (if in fact this is what it does, I am not php fluent at all)
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘I need help changing the profile links in this plugin’ is closed to new replies.