Real Estate Manager v10.7.5 and v10.7.6 include a bunch of new features/enhancements and many other…
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.
- Download and install Developers Extension, activate it.
- Go to functions.php file of Developers Plugin.
- 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.
This Post Has 0 Comments