Hey Mike, this new beta does work but I was expecting something that would work more like ‘Send to Groups’ rather than ‘Send to Users’.
I guess I wanted something more along the lines of
mailusers_register_custom_meta_filter($label, $meta_filter);
This would then return a page similar to ‘Send to Groups’ where I would select the ‘$label – $meta_value’ from the list. The $meta_value would be returned automatically based upon all the returned values for $meta_filter.
In my case something like the following
mailusers_register_custom_meta_filter(‘Department’, ‘drmc_department’);
I would want this to return the array of values to select from in a group like
Department – Medicine
Department – Surgery
Department – Pediatrics
etc
This would work the same way selecting a Role works.
That way I could make only a single add_action for each $meta_filter. If I wanted to keep the more fine grained search as currently exists then what you’ve got works.
Does that make sense?