I would like to know where the code is located that turns users into agents, I have been searching but cannot find, any help would be much appreciated.
Found it in a previous topic
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) ;
You must be logged in to reply to this topic.
WP ESTATE Video Tutorials
WP ESTATE Installation FAQs
WP RESIDENCE Video Tutorials
We're not around right now. But you can send us an email and we'll get back to you, asap.