XenWord 1.0.5.02 is now available for holders of the developer license. I appreciate all of the feedback on this version. There is an important bug fix for the login widget for select servers.
This release also improves the custom role code. The idea is for a webmaster to create a secondary user group in XenForo which is mapped in the XenWord settings panel. The plugin recognizes the secondary user group and writes it to the wp_usermeta table.
The secret was in re-writing the foreach loop for the user_has_cap filter.
[code] foreach ( $editable_roles as $role_name => $role_info ) { /** If you have changed the wp_ prefix then you must modify this line to match the new prefix */
if ( is_object( $current_user ) && isset( $current_user->data->wp_capabilities[ $role_name ] ) ) {
foreach ( $new_caps as $new_cap ) {
$capabilities[ $new_cap ] = true;
$current_user->add_role( $role_name );
}
}
}
[/code]
This site is now live with this version.
This version will be released after developers have tested it on their servers. Thank you for your patience.
Do you think this plugin will work with WooCommerce now?