Hello!
I would like to edit a bit my admin bar in BP, for example text inside each element: ( Visit -> Take a look / or / Just me -> Lorem ipsum ( inside ny account ) and something like that )
In bp-core-adminbar i have found function for account menu ( I'd like to edit it too )
Inside this function is a code for elements:
'echo '</p>
- ';</p>
<p> /* Loop through each navigation item */
$counter = 0;
foreach( $bp->bp_nav as $nav_item ) {
$alt = ( 0 == $counter % 2 ) ? ' class="alt"' : '';</p>
<p> echo '<li' . $alt . '>';
echo '' . $nav_item['name'] . '';</p>
<p> if ( is_array( $bp->bp_options_nav[$nav_item['css_id']] ) ) {
echo '
- ';
$sub_counter = 0;</p>
<p> foreach( $bp->bp_options_nav[$nav_item['css_id']] as $subnav_item ) {
$alt = ( 0 == $sub_counter % 2 ) ? ' class="alt"' : '';
echo '<li' . $alt . '>' . $subnav_item['name'] . '';
$sub_counter++;
}
echo '
<p>';'
If i want to edit tekxt between
. $subnav_item['name'] .
I have to find . $subnav_item['name'] . ... but where is it?
Cheers!
K