Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Need a way to import messages without sending them

@ernstl

Participant

@shanebp the mentioned ref array hook works like a charm. Thank you so much driving me crazy 🙂

To the folks out there: add this to the BBpress bbpress\includes\admin\converter.php

add_action('messages_message_sent', 'my_prevent_msg_send', 5 );

function my_prevent_msg_send( $args ) {
    
	unset( $args->recipients );

}

to prevent that PMS are send on import.

More about do_action_ref_array hooks here: https://codex.wordpress.org/Function_Reference/do_action_ref_array

rgds,
ernstl

Skip to toolbar