[Plugin & Widget dev] troubleshooting with wp_unregister_sidebar_widget (1 post)

  1. joprog67
    Posted 4 years ago #

    Hi everybody,

    I have a problem with plugin (widget) development in wordpress.

    Indeed, I want to execute an action when user remove a widget from a sidebar in the admin appearance panel but I don't have any results, I think wordpress don't execute my function.

    For more informations, I have this code in my plugin file :

    add_action ('wp_unregister_sidebar_widget', array ($PressReviewer, 'removeFromSidebar'));

    Someone can help me, please ?

    Tank you ! And have a nice day !

Topic Closed

This topic has been closed to new replies.

About this Topic