Reply To: Hook to use before messages load


Home Forums Front End PM PRO Hook to use before messages load Reply To: Hook to use before messages load

#11442
shamim
Keymaster

When message in changed from hidden to shown add this code there, this will clear cache so that you get correct count.


$participants = fep_get_participants( $message_id );

foreach( $participants as $participant ) 
{
    delete_user_option( $participant, '_fep_user_message_count' );
}

change $message_id with which message is hidden to shown