Add Thread comments meta box to custom post types

Out of the box XFtoWP adds the create new thread meta box to posts and pages only. With this simple filter you can add the same meta box controls to custom post types.

Simply pass the post type ID to the xfwp_comments_post_types filter in your child theme’s functions.php or plugin file:

/**
 * Add XFtoWP meta boxes to custom post types.
 *
 * @since 1.0
 */

function xftowp_custom_post_types( $post_types ) {
	$post_types[] = 'post_type_id';
	$post_types[] = 'stream';
	return $post_types;
}
add_filter( 'xfwp_comments_post_types', 'xftowp_custom_post_types' );