The latest release of the WP Discourse plugin (1.3.0) is available on the WordPress plugin repository or from GitHub.
It fixes a few issues and adds a few features to the plugin:
-
fixes the issue with avatars on Discourse being overridden by the default WordPress avatars when WordPress is used as the SSO provider.
-
adds the option to sync existing users by email address when Discourse is used as the SSO provider for WordPress.
-
adds configurable text options for the ‘Login with Discourse’, and ‘Link your account to Discourse’ text when Discourse is used as the SSO provider for Discourse.
-
adds a notice to the new-post screen when a user hasn’t set their Discourse username.
-
allows syncing logout from Discourse with WordPress when Discourse is used as the SSO provider. To make this work, add a URL in the form of
http://yoursite.com/?request=logout
to the ‘logout redirect’ setting on Discourse. -
restores the warning that is displayed when the plugin is installed on php < 5.4.0. This is a hard thing to test. If anyone has a server with php < 5.4.0 installed on it and wants to give it a try, it would be greatly appreciated.
-
adds an action hook after a user is created when using Discourse as the SSO provider. This can be hooked into to send a ‘welcome’ email to new users who are created on WordPress through SSO. I wouldn’t recommend sending the ‘new_user_notification’ email here, but if you wanted to, it can be done in the theme’s
functions.php
file with some code like this:
add_action( 'wpdc_sso_client_after_create_user', 'testeleven_send_new_user_notification' );
function testeleven_send_new_user_notification( $user_id ) {
wp_send_new_user_notifications( $user_id );
}
If these changes cause any issues, please let me know.
Support WP Discourse on OpenCollective
OpenCollective is like Patreon for open source projects. If your site relies on this plugin, please consider becoming a “backer” or a “sponsor” to support ongoing feature development, maintenance and support of the plugin.