• Resolved bapman

    (@bapman)


    Hello,

    Thanks for this very useful plugin.

    I am currently using the wpp_get_mostpopular() template tag on my site and I would like to remove the widget, which could confuse BO users.

    How can I do this? I tried many different ways but nothing worked:

    unregister_widget('WordPressPopularPosts\Widget\Widget');
    unregister_widget('wpp');
    ...

    Or I could use the wpp widget but I would like to remove a lot of the options that are shown to BO users in the widget. Is there a way to do so?

    Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @bapman,

    There’s currently no way to do any of those things unfortunately.

    Maybe you could try a different approach and use some sort of role/permission management plugin and disable access to the widgets screen for these “BO” users?

    Thread Starter bapman

    (@bapman)

    Thanks a lot for the quick response. At least I will stop searching…

    The issue is that the BO (for back-office, but maybe wp-admin is clearer :-D) users need access to other widgets, but simple ones.

    I will explain it to the users for now but maybe the functionalities I just mentioned could be added in future versions?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Actually there might be a way.

    If you’re using the WordPress Popular Posts block you can fully disable it using the wpp_block_editor_support filter hook.

    If, on the other hand, you’re using the “classic” WordPress Popular Posts widget then yeah you’re out of luck ??

    Thread Starter bapman

    (@bapman)

    Still using the classic widget, so I guess I will have to move to the new block widget and test it.

    Thanks again for your help!

    It would be great to have this option.

    In that way, we could control what basic users could do with this widget.

    Anyway, thanks for this great tool!

    Plugin Author Hector Cabrera

    (@hcabrera)

    I’ll continue to maintain the “classic” WordPress Popular Posts widget for as long as possible -as in bug fixes and/or security patches- but to be honest chances of it getting new features are pretty low @harrinsonmb. Especially considering the fact that we now have a WordPress Popular Posts block that will replace the classic widget entirely sometime in the future (actually after WordPress 5.8 was released the classic widget entered “Deprecated” territory already, it’s the Classic Widgets plugin and me supporting older versions of WordPress what’s keeping the classic widget alive.)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unregister wpp widget’ is closed to new replies.