Tagged: message, private-message, welcome
Hi Joshua,
Thank you for asking.Do you want me to put the code or a plugin? It is very easy to achieve.
Hi Brajesh,
I managed to get it figured out.
//Welcome PM// function send_message_to_new_member( $user_id) { if ( ! bp_is_active( 'messages' ) ) return; $args = array( 'sender_id' => 1, 'thread_id' => false, 'recipients' => $user_id, 'subject' => 'Welcome to Art of War Gaming!', 'content' => 'Welcome! message here', 'date_sent' => bp_core_current_time() ); $result = messages_new_message( $args ); } add_action( 'bp_core_activated_user', 'send_message_to_new_member', 1 ); //End Welcome PM//
Thank you Joshua.
Appreciate you posting the code. It might be useful for others.
Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘ [Resolved] Auto Welcome PM’ is closed to new replies.
This topic is: resolved