• Resolved James Revillini

    (@jrevillini)


    Love the plugin. Would like to have a filter or 2 to add some emails/domains as an array e.g.

    add_filter( 'BSSWO_extra_emails', function () { return ['[email protected]', '[email protected]']; } );
    add_filter( 'BSSWO_extra_domains', function () { return ['dangdomain.com', 'notrealz.com']; } );

    I figure this is the easiest way … your filter could sanitize input, reject things not matching a regex, then append to the array you use now…
    I know filters usually take a param and let you modify it, but that’ll just get messy with people adding incorrect items.
    If there’s a GIT I could pull.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.