E-Mail Notification to Admin if Pending Messages


Home Forums Front End PM PRO E-Mail Notification to Admin if Pending Messages

This topic is: Not Resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45789
    jonas.hagen
    Participant

    Hi, ist it possible to send a notification to the Admin if there are new Pending Messages in Front End PM?

    Greetings

    #45801
    Shamim Hasan
    Keymaster

    Is the message sent to Admin or any user?

    #45803
    jonas.hagen
    Participant

    If a new message is created by a user, i want to inform a admin, that there are pending messages to be approved.

    #45805
    Shamim Hasan
    Keymaster

    You can send email to admin using following code. Change content as you like.

    add_action( 'fep_action_message_after_sent', function( $message_id, $message, $new_message ){
    	wp_mail('admin@example.com', 'New Message', 'New message waiting for approval' );
    }, 10, 3);
    
Viewing 4 posts - 1 through 4 (of 4 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.