Welcome email specific to user role
Welcome email specific to user role
Welcome email specific to user role
I sort out the problem now. It seem that the permission for ‘manage_categories’ is needed for this plugin.
I found my answer: change their role to author ann define in the settings that new users are automatically authors.
When you use chrome, you can open an incognito tab and view the website without being logged in (or logged in as another user) while staying logged in in your other ‘non-incognito’ tab. With firefox: open a private window (using private browsing) With internet explorer: Use InPrivate-navigation
Change the user role based on login or theme switch
There is nothing else required, it (should) work just fine with the code you posted. I’ve given this a quick test to confirm it is working and it does. So I’m assuming there is another problem somewhere.
The plugin Revisionary allow you to review post/page revisions before they go live. You can grab it for free here: https://wordpress.org/plugins/revisionary/
Please note that translate_user_role doesn’t work in the front-end currently. Here is a workaround, you can place this in your theme: add_action( ‘init’, ‘load_admin_textdomain_in_front’ ) function load_admin_textdomain_in_front() { if ( ! is_admin() ) { load_textdomain( ‘default’, WP_LANG_DIR . ‘/admin-‘ . get_locale() . ‘.mo’ ); } }
To fetch users from a specific role, you can use the role parameter of the get_users function. Each role has a specific ID; for WordPress’ native roles, these are administrator, editor, author, contributor and subscriber. In your case, you would want to fetch only subscriber users: $allUsers = get_users( array( ‘orderby’ => ‘post_count’, ‘order’ => … Read more
You’ll also need to export the old site’s options table which is usually called wp_options and import it to new one. Cause in the options table aka wp_options table there is a row field called wp_user_roles and it holds the role values of the site.