Subscribe to topics not send email
-
Hello!
First of all I want to clarify that the notifications by email if they arrive if a response is made in the subject from the frontend, in that there is no problem.I feed the forum with external information, the updates of new and old topics are published daily. This I do by means of an import code. When users subscribe to a topic and receive new answers, email does not arrive.
I suspect that is the replic’s import code.
At the beginning of the code, I identified the id of the theme to link the replic, then updated the data.
$old_topic_id = get_post_meta( $post_id, '_bbp_topic_id', true ); $post = get_posts( array( 'post_type' => 'topic', 'meta_key' => '_old_topic_id', 'meta_value' => $old_topic_id ) ); if ( $post ) { $new_topic_id = $post[0]->ID; $args = array( 'ID' => $post_id, 'post_parent' => $new_topic_id ); wp_update_post( $args ); update_post_meta( $post_id, '_bbp_topic_id', $new_topic_id ); update_post_meta( $post_id, '_edit_last', 1 ); }
The import of topic and replic is a success, except for the detail that does not motivate users subscribed to forum and topic.
Regards!
- You must be logged in to reply to this topic.