How to tap into filter of bp_get_displayed_user_nav bp_get_options_nav
-
Hi, I am running BP 2.1.1 and WP 4.0 and I am trying to tap into the filter of bp_get_displayed_user_nav and bp_get_options_nav to do something like:
`echo apply_filters_ref_array( 'bp_get_displayed_user_nav_' . $user_nav_item['css_id'], array( '<li id="' . $user_nav_item['css_id'] . '-personal-li" ' . $selected . '> <a href="' . $link . '#item-body" rel="nofollow">' . $user_nav_item['name'] . '</a>', &$user_nav_item ) ); `
In other words, add a #item-body to the URL.
Since I don’t know how to do it, I had to create a whole new function for MY_bp_get_displayed_user_nav and MY_bp_get_options_nav and then change all of my template files!
Is there an easier way without having to change all of my template files?
My site is at underground.net
Thanks!
Charles
- The topic ‘How to tap into filter of bp_get_displayed_user_nav bp_get_options_nav’ is closed to new replies.