Title: Unable to remove fields
Last modified: July 23, 2022

---

# Unable to remove fields

 *  Resolved [rsasbeih](https://wordpress.org/support/users/rsasbeih/)
 * (@rsasbeih)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-remove-fields/)
 * I’m having trouble removing fields from the job submission page. For example,
   I would like to remove the ‘location’ field, so I added this snippet to the theme
   functions.php file as I’ve seen in the documentation. However, nothing happens
   and the location field remains. Any ideas?
 *     ```
       add_filter( 'submit_job_form_fields', 'remove_location_option' );
   
       function remove_location_option( $fields ) {
           //remove the remote_position field
           unset($fields['job']['location']);
   
           return $fields;
       }
       ```
   

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

 *  [braehler](https://wordpress.org/support/users/braehler/)
 * (@braehler)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-remove-fields/#post-15853791)
 * [@rsasbeih](https://wordpress.org/support/users/rsasbeih/)
    Seems like your meta
   key of the field you want to remove is not correct. Should be like this:
 *     ```
       add_filter( 'submit_job_form_fields', 'remove_location_option' );
   
       function remove_location_option( $fields ) {
           //remove the remote_position field
           unset($fields['job']['job_location']);
   
           return $fields;
       }
       ```
   
    -  This reply was modified 3 years, 10 months ago by [braehler](https://wordpress.org/support/users/braehler/).
    -  This reply was modified 3 years, 10 months ago by [braehler](https://wordpress.org/support/users/braehler/).
 *  Plugin Support [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * (@lastsplash)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-remove-fields/#post-15856469)
 * [@braehler](https://wordpress.org/support/users/braehler/) is correct here. You
   are using the wrong key for the field.
 * I’d recommend using a plugin like Code Snippets to add this code to your site,
   rather than adding it directly to `functions.php`:
 * * [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)
 * Please try updating your code and then mark this thread “resolved” if your issue
   is fixed.
 * If you need additional assistance beyond this, you can search for development
   help in a variety of places — here is one to start:
 * [http://jobs.wordpress.net/](http://jobs.wordpress.net/)
 * Assisting with customization is outside of the scope of the support that we can
   offer, per our [Support Policy]([https://wpjobmanager.com/support-policy/](https://wpjobmanager.com/support-policy/)).
 *  Thread Starter [rsasbeih](https://wordpress.org/support/users/rsasbeih/)
 * (@rsasbeih)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-remove-fields/#post-15873470)
 * [@braehler](https://wordpress.org/support/users/braehler/) Thanks for the help!
   
   How can I know what the meta name for an attribute is?
 *  [mnutt (a11n)](https://wordpress.org/support/users/michaelnutt/)
 * (@michaelnutt)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-remove-fields/#post-15877836)
 * Hi [@rsasbeih](https://wordpress.org/support/users/rsasbeih/),
 * You can get that from the WordPress REST API, you can find more information on
   that here:
 * [https://wpjobmanager.com/document/wp-job-manager-rest-api/](https://wpjobmanager.com/document/wp-job-manager-rest-api/)
 *  [kcassuto](https://wordpress.org/support/users/kcassuto/)
 * (@kcassuto)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-remove-fields/#post-15902655)
 * I’m having trouble removing fields from the job submission page. For example,
   I would like to remove the ‘Job_salary’ field, so I added this snippet to the
   code snippet file as I’ve seen in the documentation. However, nothing happens
   and the ‘salary” field remains. not sure i have the tags correct. Any ideas?
 * I did have success in removing the Company twitter:
 *     ```
       add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields_dm' );
       function custom_submit_job_form_fields_dm( $fields ) {
           // in this example, we remove the job_tags field
           unset($fields['job']['job_listing_salary']);
           unset($fields['company']['company_twitter']);
           // And return the modified fields
           return $fields;
       }
       ```
   
 *  Plugin Contributor [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * (@erania-pinnera)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-remove-fields/#post-15908896)
 * Hi [@kcassuto](https://wordpress.org/support/users/kcassuto/),
 * Could you please start your own thread, as per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome)?
   
   [https://wordpress.org/support/plugin/jetpack#new-post](https://wordpress.org/support/plugin/jetpack#new-post)
   Please notice that assisting with such customizations is outside the scope of
   the support we can offer, per our [Support Policy]([https://wpjobmanager.com/support-policy/](https://wpjobmanager.com/support-policy/)).
 * Thank you!
 *  [braehler](https://wordpress.org/support/users/braehler/)
 * (@braehler)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-remove-fields/#post-15910301)
 * [@kcassuto](https://wordpress.org/support/users/kcassuto/)
 * You´re also using the wrong meta.
    This should be in your case job_salary

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

The topic ‘Unable to remove fields’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager/assets/icon-256x256.gif?rev=2975257)
 * [WP Job Manager](https://wordpress.org/plugins/wp-job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager/reviews/)

 * 7 replies
 * 6 participants
 * Last reply from: [braehler](https://wordpress.org/support/users/braehler/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/unable-to-remove-fields/#post-15910301)
 * Status: resolved