BP_Messages_Thread_Template::rewind_messages()
Rewind the messages and reset message index.
Description
Source
File: bp-messages/classes/class-bp-messages-thread-template.php
public function rewind_messages() { $this->current_message = -1; if ( $this->message_count > 0 ) { $this->message = $this->thread->messages[0]; } }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.