Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Redirect on PM Sent


  • btees
    Participant

    @btees

    I want to return users to the activity page after they sent a pm.

    I tried

    function pm_redirect(){
      wp_redirect( home_url() . '/activity/' ,302 );
    }
      
      add_action( 'messages_message_sent', 'pm_redirect');

    But that seems to stop the pm from sending altogether.

  • You must be logged in to reply to this topic.
Skip to toolbar