ogumak
Forum Replies Created
-
Forum: Plugins
In reply to: [Register Plus Redux] Custom filed not showing up in Admin backendradiok, I updated the plug-in and confirmed it works fine!!
Thank you very much!
Forum: Plugins
In reply to: [Register Plus Redux] Custom filed not showing up in Admin backendGreat! I really appreciate your quick responses. Thank you!
Forum: Plugins
In reply to: [Register Plus Redux] Custom filed not showing up in Admin backendNo. The only reason is that the function is mentioned in the article I referred.
I just started using WordPress a few weeks ago, and I have no experience on PHP programming.Forum: Plugins
In reply to: [Register Plus Redux] Custom filed not showing up in Admin backendI had a same problem, but I think I could fix this.
According to this topic, wp_update_user() will remove user meta data when you change the role.
http://wordpress.org/support/topic/does-wp_update_user-delete-user_metaInstead, you should use set_role() to change the role.
I changed rpr-admin-menu.php line 946 and line 971 of version 3.9.8 as follows.
// wp_update_user( array( ‘ID’ => $user_id, ‘role’ => (string) get_option( ‘default_role’ ) ) );
$user = new WP_User($user_id);
$user->set_role((string) get_option( ‘default_role’ ));And it worked (as long as I can see).
Hope it helps.