wp_dropdown_users_args filter no longer being called
-
Hi, we’ve been using the wp_dropdown_users_args as a filter to add users to the dropdown based on user role in order to assign blog posts to them. However, it seems that that filter is being skipped and only admins are appearing in the dropdown. This is true for both the page builder and the quick edit function. Is this a bug in wordpress or is there a new way of doing this? Thanks in advance. Below is the code we were using, but the function is no longer being called at all
add_action('wp_dropdown_users_args', 'filter_authors'); function filter_authors($args) { if (isset($args['who'])) { $args['role__in'] = ['administrator', 'employee', 'blog_author']; unset($args['who']); } return $args; }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘wp_dropdown_users_args filter no longer being called’ is closed to new replies.