I have around 500 words which I want to banned them to be use on product add and user registration. How can i do that ?
I tried using the event and observer for catalog_product_save_after
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="catalog_product_save_after">
<observer name="ghrix_bannedwords_banned" instance="Ghrix\BannedWords\Observer\Banned" />
</event>
</config>
any other way to do globally ?
Thanks