• paulamalcolm

    (@paulamalcolm)


    I am currently using the CDT Plug-in. I have a table that stores user records by their login user ID. There are two things i am hoping to do:

    1. Allow the user to edit a record by clicking on a column or row whichever i can get to work.

    2. Restrict the user to only be able to edit their own records. They can view ALL records int the table but can only edit theirs.

    https://wordpress.org/plugins/custom-database-tables/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ka2

    (@ka2)

    Thank you for your inquiry.

    To realize your needs, you will need a highly customizable by making full use of the filter hook and JavaScript.

    About “1.”, you will want to trigger the edit button to pick up the click event at JavaScript.

    About needs of “2.”, I think that may be quite difficult to achieve only in the “cdbt-edit” shortcode.

    Both needs also, maybe, the best way will be handling as own components using the plugin builtin methods, rather than the shortcodes.

    Thank you,

    Thread Starter paulamalcolm

    (@paulamalcolm)

    Thanks for your comments. I will see how best I can apply your suggestion.

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

The topic ‘Restrict Editing by Login User ID’ is closed to new replies.