Support » Plugin: WP-DB-Table-Editor » Example for different parameters

  • Resolved Manas Mitra

    (@manas666)


    Hi,

    The plugin is a powerful one but the documentation lacks real life example. Is there any where I can find actual working (mainly editing / updating data) with sample coding?

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bobbysmith007

    (@bobbysmith007)

    There are examples in both the README and the examples directory.

    https://github.com/AccelerationNet/wp-db-table-editor/blob/master/README.md
    https://github.com/AccelerationNet/wp-db-table-editor/blob/master/examples

    If you are looking for a specific example please let me know, but I think most of the things you would need to do in those places (but perhaps not obviously labeled).

    Hi @bobbysmith007,

    I have thoroughly gone through the documentation (readme.md). It has all the options listed, but not the related parameters. For example, cap and editcap, as per documentation, these two options need to be added with main command, but no detailed parameter is provided in the documentation.

    Immediately after editcap, there is another option noedit, which shows one of the parameters “nosuchcapability” that can be used with editcap, but there maybe other parameters of editcap which are not mentioned in the documentation.

    Would you be able to kindly provide a list of such parameters to all the mentioned options?

    Best regards.

    Plugin Author bobbysmith007

    (@bobbysmith007)

    I updated the parameters information to hopefully be a little more clear (though my changes dont help too much). Those and most options give the default value ( in this case its edit_others_posts). Perhaps you are unaware of cap / capability as a standard wordpress term: https://codex.wordpress.org/Roles_and_Capabilities. Since these are not enumerable (they can be customized) and are a standard part of wordpress, it didnt make sense to try an list them all.

    Most of the options do not have an enumerable list of possible values, but are customizable eg: “what function name do you want to call” cannot be filled in with anything meaningful because its whatever custom function name you write. Others are boolean flags. I have tried to add an example value for each option. Feel free to request more assistance if you need.

    If you need more specific help please do let me know.

    Thanks @bobbysmith007 for your reply. I hope that I shall be able to manage it now. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Example for different parameters’ is closed to new replies.