Shortcode message & disabled nav & admin
-
Hi,
1) What is “shortcode” of message page? I would like to do_action somewhere in template, not in a whole new page.
2) How do i complete disabled domain.com/members/user-name/bp-message?
I used css to hidden nav menu, but when i visit abow URL, i stil available access this page without through out 404 error as page none have.3) When i choose someone to send message, i see the admin. How do i remove admin from send message? Can you help me correct the code bellow, it work on defaul buddypress, but none work on your plugin.
function filter_message_auto_complete_ids( $user_ids ) { if ( empty( $user_ids ) ) { return $user_ids; } $excluded = get_users( array( 'role' => 'administrator', 'fields' => 'ID' ) ); return array_diff( $user_ids, $excluded ); } add_filter( 'bp_core_autocomplete_ids', 'filter_message_auto_complete_ids' ); add_filter( 'bp_friends_autocomplete_ids', 'filter_message_auto_complete_ids' );
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Shortcode message & disabled nav & admin’ is closed to new replies.