• safecaches
    April 27, 2015 at 12:35 am #107286

    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.


    April 27, 2015 at 12:41 am #107287

    Found it in a previous topic

    Function is in ajax-login.php line 128

    function wpestate_register_as_user($user_name,$user_id){
    $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.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.