• Resolved jarldev

    (@jarldev)


    Hi there,

    The plugin works well with the default wordpress user roles.
    But when I used a custom user role, it will delete the comments after cliking the save / publish.

    Is there any way to prevent this from happening?

    Thank you!

    • This topic was modified 3 years, 9 months ago by jarldev.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jarldev

    (@jarldev)

    it will delete the comments after clicking the save / publish.

    Correction:
    Comments are deleted after refreshing the page.

    Flow:
    Write comment -> Add Comment -> save / publish -> refresh page -> deleted.

    file: class-commenting-block-admin
    line: 71
    method: cf_add_unfiltered_html_capability_to_users

    I tried editing this method by adding the custom role it will solve the problem.

    Is there any other way? Like using a filter method where I can add it theme function file instead of editing the plugin source code?

    Thanks!

    Hi @jarldev,

    Thank you for creating a ticket!

    A plugin is fully compatible with default WordPress user roles.

    We have not tested our plugin with a custom user role. The current plugin version is not supported the custom user role. Currently, we do not have any method to add extra custom roles into our plugin.

    In the upcoming new version1.1.0 ?of our plugin, we are not using this cf_add_unfiltered_html_capability_to_users function anymore and in version 1.1.0 ?we are allowing only WordPress default user roles. Still, we are not having any method to support custom roles. Maybe in the next versions, we can think about that.

    If you still have any questions. Please let me know.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom User Role’ is closed to new replies.