skip to Main Content
support@webcodingplace.com

Modify Agent Registration Fields

You can delete, edit or add more fields in agent registration form by using filter rem_agent_fields. Follow below steps.

  1. Download and install Developers Extension, activate it.
  2. Go to functions.php file of Developers Plugin.
  3. Paste following code before end of closing php, to remove social fields from agent profile and registration.

 

	add_filter( 'rem_agent_fields', 'rem_remove_social_fields', 10, 1 );

	function rem_remove_social_fields($fields){
		$fields_to_remove = array(
			'rem_facebook_url',
			'rem_twitter_url',
			'rem_googleplus_url',
			'rem_linkedin_url',
			'rem_facebook_page_url',
			'rem_instagram_url',
			'rem_youtube_url',
		);

		foreach ($fields as $key => $field) {
			if (isset($field['key']) && in_array($field['key'], $fields_to_remove)) {
				unset($fields[$key]);
			}
		}

		return $fields;
	}

 

Similarly you can add more fields by pasting below code.

 

	add_filter( 'rem_agent_fields', 'rem_add_more_fields', 10, 1 );

	function rem_add_more_fields($fields){
		$myfields = array(

			// Repeat this to add more fields
	        array(
	            'key' => 'previous_company',
	            'type' => 'text',
	            'display' => array('register', 'edit'),
	            'title' => __( 'Previous Company', 'real-estate-manager' ),
	            'help' => '',
	            'tab' => 'personal_info',
	            'required' => false,
	        ),

		);
		$f = array_merge($fields , $myfields);
		return $f;
	}

 

We’re also working on a separate extension with drag drop interface to manage agent registration fields. It will be released soon.

Rameez

Wordpress Developer

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top