• Resolved tudsamo

    (@tudsamo)


    Hello,
    I have a problem with the plugin.
    I set the inbox view as “Individual” but the label “Unread” appears also on the messages sent by me.
    Example:
    User1 writes to User2 (User2 receives the message, correctly labeled as Unread)
    User2 reply to User1 (User1 receives the message, correctly labeled as Unread but the label “Unread” is also shown on the message sent by User1).
    How can I just remove “Unread” label on messages sent?
    I don’t want to change the view to “Threaded” because this is not a solution to my trouble.
    I wait your kindly reply.
    Francesco

Viewing 1 replies (of 1 total)
  • Thread Starter tudsamo

    (@tudsamo)

    Resolved by my self.

    Modifing functions.php file.

    In “function fep_send_message( $message = null, $override = array() )”
    change $message[‘post_parent’] from absint( $message[‘fep_parent_id’] ) to 0;
    In this way the messages aren’t sign as parent!

    if( ! empty($message[‘fep_parent_id’] ) ) {
    $message[‘post_status’] = fep_get_option(‘reply_post_status’,’publish’);
    $message[‘message_title’] = __(‘RE:’, ‘front-end-pm’). ‘ ‘ . get_the_title( $message[‘fep_parent_id’] );
    $message[‘message_to_id’] = get_post_meta( $message[‘fep_parent_id’], ‘_participants’ );
    //$message[‘post_parent’] = absint( $message[‘fep_parent_id’] );
    $message[‘post_parent’] = 0;
    } else {
    $message[‘post_status’] = fep_get_option(‘parent_post_status’,’publish’);
    $message[‘post_parent’] = 0;
    }

    Thanks TO ME! 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Unread Label’ is closed to new replies.