Edit Flow
[resolved] Editorial Metadata - Limit user field to specific role (3 posts)

  1. bswen
    Posted 3 years ago #

    Is there a way, perhaps via a filter in functions.php, to limit a user metadata term to users of a specific role or roles?

    If not, I think this would be a good feature to add. My particular use case is that I want to add an assigned editor metadata term and limit the users in the drop down to just those with the Editor role.




  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 3 years ago #

    Not in the current version, but I've just added a filter to our development version where you could modify with something like this:

    add_filter( 'ef_editorial_metadata_user_dropdown_args', efx_editorial_metadata_user_dropdown_args' );
    function efx_editorial_metadata_user_dropdown_args( $args ) {
       $args['include'] = array( 1, 2, 3 );
        return $args;

    The 1,2,3 inside the array would be the users you'd want included.

  3. jasonfretwell
    Posted 3 years ago #

    Hi Daniel! I'm just in the process of looking at your plugin to see if we can use it to manage our online newspaper's article submission process and this feature is exactly what is needed.

    I'm obviously new to EditFlow, could you possible expand on how/where I would apply the filter you mention above? I've pasted the code (with users modified) into my themes functions.php and it breaks the site. I assume I'm not using the development version - is it possible to get this or is there a date when this feature might be included in an official release?



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Edit Flow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic