messages_action_view_message

  • do_action( 'messages_action_view_message' )

    Source Reference:

    • Component: BuddyPress:: bp-messages
      File: /bp-messages/bp-messages-actions.php :: Trac Source Line: 45
      	// Mark message read
      	messages_mark_thread_read( $thread_id );
      
      	// Decrease the unread count in the nav before it's rendered
      	$name = sprintf( __( 'Messages <span>%s</span>', 'buddypress' ), bp_get_total_unread_messages_count() );
      
      	$bp->bp_nav[$bp->messages->slug]['name'] = $name;
      
      	do_action( 'messages_action_view_message' );
      
      	bp_core_new_subnav_item( array(
      		'name'            => sprintf( __( 'From: %s', 'buddypress' ), BP_Messages_Thread::get_last_sender( $thread_id ) ),
      		'slug'            => 'view',
      		'parent_url'      => trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() ),
      		'parent_slug'     => bp_get_messages_slug(),
      		'screen_function' => true,
      		'position'        => 40,
      		'user_has_access' => bp_is_my_profile(),
      		'link'            => bp_displayed_user_domain() . bp_get_messages_slug() . '/view/' . (int) $thread_id
      

Comments are closed.