diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
index 55449bf..68c060e 100644
|
|
function bp_nav_menu_get_loggedin_pages() { |
2277 | 2277 | |
2278 | 2278 | // Try to catch the cached version first |
2279 | 2279 | if ( ! empty( buddypress()->wp_nav_menu_items->loggedin ) ) { |
2280 | | return buddypress()->wp_nav_menu_items->loggedin; |
| 2280 | /** This filter is documented in bp-core/bp-core-functions.php */ |
| 2281 | return apply_filters( 'bp_nav_menu_get_loggedin_pages', buddypress()->wp_nav_menu_items->loggedin ); |
2281 | 2282 | } |
2282 | 2283 | |
2283 | 2284 | // Pull up a list of items registered in BP's top-level nav array |
… |
… |
function bp_nav_menu_get_loggedin_pages() { |
2326 | 2327 | |
2327 | 2328 | buddypress()->wp_nav_menu_items->loggedin = $page_args; |
2328 | 2329 | |
2329 | | return $page_args; |
| 2330 | /** |
| 2331 | * Filter the Logged In nav item objects. |
| 2332 | * |
| 2333 | * @since BuddyPress (2.4.0) |
| 2334 | * |
| 2335 | * @param array $page_args Array of nav item "page" objects. |
| 2336 | */ |
| 2337 | return apply_filters( 'bp_nav_menu_get_loggedin_pages', $page_args ); |
2330 | 2338 | } |
2331 | 2339 | |
2332 | 2340 | /** |
… |
… |
function bp_nav_menu_get_loggedout_pages() { |
2347 | 2355 | |
2348 | 2356 | // Try to catch the cached version first |
2349 | 2357 | if ( ! empty( buddypress()->wp_nav_menu_items->loggedout ) ) { |
2350 | | return buddypress()->wp_nav_menu_items->loggedout; |
| 2358 | /** This filter is documented in bp-core/bp-core-functions.php */ |
| 2359 | return apply_filters( 'bp_nav_menu_get_loggedin_pages', buddypress()->wp_nav_menu_items->loggedout ); |
2351 | 2360 | } |
2352 | 2361 | |
2353 | 2362 | $bp_menu_items = array(); |
… |
… |
function bp_nav_menu_get_loggedout_pages() { |
2400 | 2409 | |
2401 | 2410 | buddypress()->wp_nav_menu_items->loggedout = $page_args; |
2402 | 2411 | |
2403 | | return $page_args; |
| 2412 | /** |
| 2413 | * Filter the Logged Out nav item objects. |
| 2414 | * |
| 2415 | * @since BuddyPress (2.4.0) |
| 2416 | * |
| 2417 | * @param array $page_args Array of nav item "page" objects. |
| 2418 | */ |
| 2419 | return apply_filters( 'bp_nav_menu_get_loggedout_pages', $page_args ); |
2404 | 2420 | } |
2405 | 2421 | |
2406 | 2422 | /** |