Making simple Enhancements
-
I see requests here for enhancements but the one banhammer_drop method that does the heavy lifting is quite simple and easy to extend. I’m wondering if I’m missing some well-known taboo against changes to this plugin.
For example, it would be easy to get it to recognize that the first character is something unique and then process the rest of the filter as a regexp. That answers all of these requests for partials.
Personally, I needed the following enhancement to use the same blacklist filters against the User Login Name as well as the email addresses.
if( stripos($user_email, $blacklist_current) !== false || stripos($user_login, $blacklist_current) !== false ) {
That just doubled the usefulness of this plugin! ??
And rather than hardcoding rules like that, why not add a hook here to call to another plugin that provides the above and other functions. I mean, it seems like a no-brainer that we’re in just another Loop here, why not invite custom functionality to participate in the sanitization process?
Thanks!
- The topic ‘Making simple Enhancements’ is closed to new replies.