The property submission page is user_dashboard_add.php . On this page we check the submission info submitted by users and if everything checks out we add or edit the property.

The add property code starts at line 275 while the edit property code is at line 665.

If you want to remove the mandatory status for some fields please delete the if checks like the one below

if($property_address==''){
$has_errors=true;
$errors[]=__('Please submit an address for your property','wpestate');
}

If you want to add extra mandatory fields use the if checks like the one above.

Taxonomies are added using wp_set_object_terms like the code below- used for property category

 wp_set_object_terms($post_id,$prop_category->name,'property_category'); 

while meta options are set with update_post_meta like

update_post_meta($post_id, 'property_country', $country_selected);

The images are set at line 495

  $attchs=explode(',',$_POST['attachid']);
$last_id='';
foreach($attchs as $att_id){
if( !is_numeric($att_id) ){
}else{
if($last_id==''){
$last_id= $att_id;
}
$order++;
wp_update_post( array(
'ID' => $att_id,
'post_parent' => $post_id,
'menu_order'=>$order
));
}
}
if( is_numeric($_POST['attachthumb']) && $_POST['attachthumb']!='' ){
set_post_thumbnail( $post_id, wp_kses($_POST['attachthumb'],$allowed_html ));
}else{
set_post_thumbnail( $post_id, $last_id );
}

The actual front end page – where the users submit the data is split between several pages. We start with templates/front_end_submission.php and then we load various modules located in separated pages.

All these pages are located in templates/submit_templates. Their name is self-explanatory.

If you want to add extra details that cannot be added via custom fields feature you need to first add the new form fields in one of the submission templates and after that read the POST variable in user_dashboard_add.php, sanitize it and after insert the new option.

If you want to delete – just delete from submitting templates and if the field is mandatory delete the “mandatory if check” for add and edit blocks in user_dashboard_add.php