RaulMay 19, 2014 at 5:27 pm #37858
I would like to know how can I convert an user into agent, by just chaging the data in the BD.
Thanks.RaulMay 21, 2014 at 12:18 pm #38244
bump?AnnaMay 21, 2014 at 12:51 pm #38247
Thanks for the bump. Didn’t get the first message.
A PHP developer will answer this in the next 1-2 days.
AnnaRaulMay 22, 2014 at 12:55 pm #38440
Thank you Anna.creremMay 24, 2014 at 9:50 am #38740
Unfortunately you cannot do that just by changing something into DB. Agents are a custom post type and they are stored in a different database table than the user.
I recommend to set the option “Front end registered users should be saved as agents” to yes , delete users and register again in front end.
RaulMay 24, 2014 at 5:22 pm #38761
- This reply was modified 2 years, 10 months ago by Anna.
For some reason after tons of modifications that option doesnt work anymore. But I would like to do manually whatever that option does when a user is registered for 1st time.
Could you please explain me how do you handle the registration of an agent?
Thanks.AnnaMay 27, 2014 at 4:00 pm #39233
Sorry for the delay. It’s a busy week for us. Will try to answer these days.
AnnaraulMay 28, 2014 at 2:28 pm #39365
Its ok Anna, we are solving others things first but this is a major trouble for us and we need that as soon as you can. We just want to know how an agent is formed so we can register some users as agents and some others as users.
ThanksAnnaMay 28, 2014 at 4:58 pm #39387
Function is in ajax-login.php line 128
$post = array(
‘post_title’ => $user_name,
‘post_status’ => ‘publish’,
‘post_type’ => ‘estate_agent’ ,
$post_id = wp_insert_post($post );
update_post_meta($post_id, ‘user_meda_id’, $user_id);
update_user_meta( $user_id, ‘user_agent_id’, $post_id) ;
AnnaRaulMay 30, 2014 at 6:46 pm #39698
Thanks Anna, that worked..sanketNovember 16, 2014 at 2:42 am #100715
How you changed it raul . can you little explain please . i also want to do the same .mi000001November 27, 2014 at 8:12 pm #100925
Yes, Raul, can you explain for us please? thank you…
Anna, could this be a future fix in future updates to make users agents and agents users from admin with much more ease? that would be great if you can implement it in future updates.
Thank you!AnnaNovember 28, 2014 at 10:03 am #100932
In Admin this option can’t work with YES/NO control. At least that’s what we figured out when we implemented this.
We will keep an eye open.
You must be logged in to reply to this topic.