How could I resolve plugin warning about setting "set hookData.html"


  • Anime Lovers

    My plugin uses filter:widget.render hook, and recently when I upgrade my forum, the warning shows I need to set hookData.html. Is there any documentation about this? Thanks in advance.


  • Admin

    Here is what you need to do in your plugin.

    myPlugin.renderWidget = function (data, callback) {
      //render html
      var html = render();
      data.html = html;
      callback(null, data);
    };
    

    That will get rid of the warning.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.