bbp_new_reply_pre_insert

  • apply_filters( 'bbp_new_reply_pre_insert', $reply_data )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 237
      			'post_author'  => $reply_author,
      			'post_title'   => $reply_title,
      			'post_content' => $reply_content,
      			'post_parent'  => $topic_id,
      			'post_status'  => bbp_get_public_status_id(),
      			'post_type'    => bbp_get_reply_post_type()
      		);
      
      		// Just in time manipulation of reply data before being created
      		$reply_data = apply_filters( 'bbp_new_reply_pre_insert', $reply_data );
      
      		// Insert reply
      		$reply_id = wp_insert_post( $reply_data );
      
      		/** No Errors *********************************************************/
      
      		// Check for missing reply_id or error
      		if ( !empty( $reply_id ) && !is_wp_error( $reply_id ) ) {
      
      			/** Topic Tags ****************************************************/
      

Comments are closed.