%2$s', 'buddypress' ), esc_attr( $class ), bp_core_number_format( $count ) ); // Edit the Navigation name. $bp->members->nav->edit_nav( array( 'name' => $nav_name, ), $bp->messages->slug ); /** * Fires right before the loading of the Messages view screen template file. * * @since 1.7.0 */ do_action( 'messages_screen_conversation' ); /** * Filters the template to load for the Messages view screen. * * @since 1.0.0 * * @param string $template Path to the messages template to load. */ bp_core_load_template( apply_filters( 'messages_template_view_message', 'members/single/home' ) ); } add_action( 'bp_screens', 'messages_screen_conversation' );