Create Filter in Account Module

I still don’t understand your requirement.

If you want to manipulate the list of filters available programmatically, maybe you can do it from the database.

First look at table user_preferences, and create a filter manually inside the app, to see the new row that comes up in that table (you can sort by date_modified to make it easier to find the newest entry).

Each row will have a user_id and some category like “global” or others. Learn which category the filter uses.

The filter data itself in in the “contents” field, decode it with Base64.

(you can try it manually here www.base64decode.org/)

Now you can try to recreate that sort of settings with some code (hopefully).

I am not 100% sure if this is where it is stored, but I think it is, please check.