Title: Remove phone number
Last modified: April 12, 2018

---

# Remove phone number

 *  Resolved [xjamasterx](https://wordpress.org/support/users/xjamasterx/)
 * (@xjamasterx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/remove-phone-number/)
 * Hi there,
 * I’d like to remove “Phone Number” as an option when adding an advertisement. 
   How do I do this?
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/remove-phone-number/#post-10172863)
 * Hi,
    you can do that by adding the code below in your theme functions.php file
 *     ```
       add_filter( "adverts_form_load", "customize_adverts_add_remove_phone" );
       function customize_adverts_add_remove_phone( $form ) {
         if( $form['name'] != "advert" ) {
           return $form;
         }
         foreach( $form["field"] as $key => $field ) {
           if( $field["name"] == "adverts_phone" ) {
               unset( $form["field"][$key] );
           }
         }
         return $form;
       }
       ```
   
 * or by using the Custom Fields extension.

Viewing 1 replies (of 1 total)

The topic ‘Remove phone number’ is closed to new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/remove-phone-number/#post-10172863)
 * Status: resolved