Skip to:
Content
Pages
Categories
Search
Top
Bottom

Displaying message


  • neijisly
    Participant

    @neijisly

    Hi, i finalize a project but i have one problem. i want to display only message receive of last 2 hours. Thank

Viewing 3 replies - 1 through 3 (of 3 total)

  • shanebp
    Moderator

    @shanebp

    Use the filter in function bp_has_message_threads
    Found in buddypress\bp-messages\bp-messages-template.php

    apply_filters( 'bp_has_message_threads', $messages_template->has_threads(), $messages_template, $r );

    And remove the messages you don’t want to appear.


    neijisly
    Participant

    @neijisly

    Yes, I have already successfully displayed. I would like to have Eg: 2 messages. The first send 2 days ago and the second send 1 day ago. I apply the filter to display only the message send 1 day ago. Thank you


    neijisly
    Participant

    @neijisly

    Help please!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying message’ is closed to new replies.
Skip to toolbar