123 | | // Use the string provided by the component. |
124 | | if ( ! empty( buddypress()->{$component}->directory_title ) ) { |
| 123 | /* |
| 124 | * Use the 'title' string set in bp_core_get_directory_pages() & |
| 125 | * built from either wp_get_cache('directory_pages', 'bp') or from a wbdb post query |
| 126 | * This allows us to print the WP Page name as set or changed by the user. |
| 127 | */ |
| 128 | if ( ! empty( bp_core_get_directory_pages()->{$component}->title ) ) { |
| 129 | $title = bp_core_get_directory_pages()->{$component}->title; |
| 130 | |
| 131 | // Or use the string provided by the component in bp-{component}-loader.php setup_globals. |
| 132 | } elseif ( ! empty( buddypress()->{$component}->directory_title ) ) { |