Title: Send Private Message hook/function
Last modified: August 31, 2016

---

# Send Private Message hook/function

 *  [adsgar](https://wordpress.org/support/users/adsgar/)
 * (@adsgar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/send-private-message-hookfunction/)
 * Hi,
 * I am using the BuddyPress theme Kleo with the BP-WP Profile reviews and ratings
   plugin.
 * I have custom edited the members directory to style it differently. I am having
   trouble separating the “send private message button’ and the ‘user reviews’ when
   they appear in the members directory.
 * I am editing members-loop.php in the Kleo-Child theme.
 * When I call this action:
 *     ```
       <div class="action">
             <?php do_action( 'bp_directory_members_actions' ); ?>
         </div>
       ```
   
 * It calls both the ‘send private message button’ and the ‘user ratings’ and places
   them in the same div. If I call it again it just duplicates.
 * I can’t work out how to call them separately. I presume there is a function to
   call them such as:
 *  `
    <?php do_action( ‘bp_directory_members_actions, ‘send_private_message_button’,);
 * `
 * But I don’t know where to find them. Can anyone help?
 * Thanks.

The topic ‘Send Private Message hook/function’ is closed to new replies.

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [members directory](https://wordpress.org/support/topic-tag/members-directory/)
 * [private message](https://wordpress.org/support/topic-tag/private-message/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [adsgar](https://wordpress.org/support/users/adsgar/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/send-private-message-hookfunction/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
