Okay
  Public Ticket #1335646
Front end editing
Closed

Comments

  • Robert McIntyre started the conversation

    Im interested in using WPDataTables for a client of mine but they have a very specific requirement. 

    They want to the ability for a user on the front end to add a new row of data to a table BUT not be allowed to edit or delete rows after they are added.

    Is this something I can (as a developer) remove functionality for easily or is there a setting that can do this in the back-end. So far I have noticed you can allow front-end editing but can't specify which editing tools (add, edit, delete) will display.

  • [deleted] replied

    Hi Robert,

    You can remove those buttons with CSS really easy and it is not much more difficult to remove it from PHP as well. Unfortunately we do have settings to choose export buttons but not buttons for editing. 
    If you have struggle to do it yourself please contact our support team and they will help you to achieve this.  

  • Robert McIntyre replied

    Hi Miljko,


    Thanks for your response. I'm hoping to remove the buttons via PHP as CSS allows an opportunity for a savvy person to open their browser console and display the buttons again in temporarily. Does your plug-in support duplicated plug-in files to be modified and placed in a child theme so the plug-in remains intact for future updates?

  • [deleted] replied

    Hi Robert,

    In our documentation you can find numerous of filters and actions which allows you to extend plugin functionalities without changing the core of the plugin. For your case please take a look at wpdatatables_filter_table_description filter which will give you an option to change object that contains all the settings for the table and you can choose which table you want to apply them to based on the table ID