How to add custom attributefilter from plugin ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
How to add custom attributefilter from plugin to global filters ? Nop 4.0


services.AddMvc(options =>
    {
        options.Filters.Add(new MyAttribute("myCustomFilter",
            "Result filter added to MvcOptions.Filters"));
        options.Filters.Add(typeof(MyActionFilter));
        options.Filters.Add(new MyGlobalActionFilter());
    });
6 years ago
https://www.nopcommerce.com/boards/t/49255/how-can-i-register-a-global-action-filter-from-my-plugin-in-nopcommere-40.aspx
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.