Skip to content

Enable Thread create and connect to custom user roles

In Thread comments settings you can assign the create/connect thread ability to the Editor and Author roles. Use this filter to add your own custom roles to the settings page:

Add custom user roles to Thread comments

/**
 * Grant create/connect thread ability to custom
 * user roles.
 *
 * @since 1.0
 */
function child_theme_xfwp_comments_roles( $roles ) {
	$roles[] = 'role';
	return $roles;
}
add_filter( 'xfwp_comments_roles', 'child_theme_xfwp_comments_roles' );

Alex

Hi, I’m Alex! I started writing about web design and blogging at 13 years old, which turned into client work, which led to building my own software. 15 years later I’m still at it, and XFtoWP is the plugin I always wanted to connect my two favorite software together.

Get sneak peaks, release note, success stories, and other interesting WordPress and XenForo content sent to your inbox.

Unsubscribe anytime.