Title: [Plugin: Business Directory] remove &#039;required&#039; fields
Last modified: August 19, 2016

---

# [Plugin: Business Directory] remove 'required' fields

 *  [tsl123](https://wordpress.org/support/users/tsl123/)
 * (@tsl123)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-business-directory-remove-required-fields/)
 * Hi
 * I need to know how I can either stop certain required fields from being displayed
   or remove the requirement for certain feilds to be completed.
 * For instance you have to complete website, phone number or email, but if it has
   already been entered in to the description I don’t want the information to be
   displayed again.
 * I hope this makes sense!
 * Cheers
    tony

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [bsohal](https://wordpress.org/support/users/bsohal/)
 * (@bsohal)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-business-directory-remove-required-fields/#post-2029559)
 * I think it cannot be set on or off like pluggable. You should modify the code
   to do this.
    Probably : change in function validateListing($v,$admin = false)
   in functions.php
 *  [domher](https://wordpress.org/support/users/domher/)
 * (@domher)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-business-directory-remove-required-fields/#post-2029585)
 * I would like to be able to do this, too.
 *  [F C](https://wordpress.org/support/users/pmagony/)
 * (@pmagony)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-business-directory-remove-required-fields/#post-2029622)
 * I was able to successfully do this by editing /wp-content/plugins/business-directory/
   function.php
 * In line blocks 14 – 32, you’ll have the construction of the form itself. Locate
   the asterisks for the fields and delete them. This will remove the asterisks 
   from the front-end and the user getting misinformed that a field is required 
   when it indeed will not be.
 * Next
 * Line 777 – 810 will contain the actual validation check statements. Simply comment
   out the lines that you do not want the script to validate for. Here is an example,
   where I commented out the “Description” field requirement on Line: 794 – 798:
 *     ```
       /*if(empty($v["description"]))
       		$errors[] = empty($post["description"])?
       			"Please enter a brief description for the organization.<br/>":
       			"Invalid character(s) in $adjective description.<br/>"
       		;*/
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Business Directory] remove 'required' fields’ is closed to new
replies.

 * 3 replies
 * 4 participants
 * Last reply from: [F C](https://wordpress.org/support/users/pmagony/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-business-directory-remove-required-fields/#post-2029622)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
