Title: Disable insert/delete rows
Last modified: August 21, 2016

---

# Disable insert/delete rows

 *  Resolved [slevit](https://wordpress.org/support/users/slevit/)
 * (@slevit)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/disable-insertdelete-rows/)
 * Is it possible to disable insert & delete rows, on a given table, for all but
   Administrators?
 * [https://wordpress.org/plugins/wp-db-table-editor/](https://wordpress.org/plugins/wp-db-table-editor/)

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

 *  Plugin Author [bobbysmith007](https://wordpress.org/support/users/bobbysmith007/)
 * (@bobbysmith007)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/disable-insertdelete-rows/#post-5112933)
 * I believe this should be possible by assigning editcap variable agument in the
   call to `add_db_table_editor`
 * EG:
    `add_db_table_editor('title=Employees&table=employees&editcap=edit_others_posts');`
 * If this is not working please let me know and we can try and resolve this.
 * Thanks for your feedback, sorry it took me some time to get to it.
 *  Thread Starter [slevit](https://wordpress.org/support/users/slevit/)
 * (@slevit)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/disable-insertdelete-rows/#post-5112934)
 * I’ll give it try. Out of curiosity, why do you advise not to “put an editable
   table editor on your public facing screens using the shortcode!”?
 *  Plugin Author [bobbysmith007](https://wordpress.org/support/users/bobbysmith007/)
 * (@bobbysmith007)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/disable-insertdelete-rows/#post-5112936)
 * Well its mostly never a good idea to let the public internet edit data in your
   database without at least some checks and balances… there are none in this plugin.
   This plugin expects editors to be basically trusted.

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

The topic ‘Disable insert/delete rows’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-db-table-editor.svg)
 * [WP-DB-Table-Editor](https://wordpress.org/plugins/wp-db-table-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-db-table-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-db-table-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-db-table-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-db-table-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-db-table-editor/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [bobbysmith007](https://wordpress.org/support/users/bobbysmith007/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/disable-insertdelete-rows/#post-5112936)
 * Status: resolved