Title: Edit function fep_send_message
Last modified: May 22, 2020

---

# Edit function fep_send_message

 *  Resolved [eveille99](https://wordpress.org/support/users/eveille99/)
 * (@eveille99)
 * [6 years ago](https://wordpress.org/support/topic/edit-function-fep_send_message/)
 * Hi,
 * I would like execute code when message is send. I found “fep_send_message” but
   i don’t want edit core file.
 * How do to edit “fep_send_message” in my functions.php (theme file) ?
 * Thanks a lot !

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [6 years ago](https://wordpress.org/support/topic/edit-function-fep_send_message/#post-12876148)
 * You can add following code in your theme’s (child theme’s if you are using) functions.
   php
 *     ```
       add_action( 'fep_action_message_after_send', function( $message_id, $message, $inserted_message ){
           //Use your code here. This will be called after message sent
       }, 10, 3 );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Edit function fep_send_message’ is closed to new replies.

 * ![](https://ps.w.org/front-end-pm/assets/icon-256x256.gif?rev=2309447)
 * [Front End PM](https://wordpress.org/plugins/front-end-pm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-pm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-pm/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-pm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-pm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-pm/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/edit-function-fep_send_message/#post-12876148)
 * Status: resolved