Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing Private Message Sentbox completely


  • Evan Stein
    Participant

    @vanpop

    Hello, I am able to remove the Sent tab which removes access to the sent box page however the default js behavior still redirects to the sentbox after a successful private message is sent. I’m trying to figure out the best way to stop this behavior (ideally, would like to either stay on compose screen remove fields or clear fields and return success message or redirect to inbox and display success) but I am having trouble getting this to work.

    In my latest attempt, I tried to dequeue the messages js and enqueue my own version but I couldn’t get that to work as it seemed other messages js dependencies weren’t loading.

    Hoping someone might be able to point me in the right direction here. Thanks in advance!

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

  • shanebp
    Moderator

    @shanebp

    Did you include all the dependencies in your enqueue?
    array( 'bp-nouveau', 'json2', 'wp-backbone', 'bp-nouveau-messages-at' ),


    Evan Stein
    Participant

    @vanpop

    AHHHHHHHH!!! THANK YOUUUU!!!! I wasn’t. I knew I needed to but what threw me off was when I looked at BP to see how bp-nouveau-messages was being enqueued, I didn’t see any dependencies so it left me unsure if a) I actually needed them (still thought I did) and b) what they were.

    This has helped immensely, thank you!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar