• Hi,

    Thanks for this wonderful plugin. It works flawlessly!

    I’ve a workflow where users are registered as subscribers and then I use this snippet to show them in the Post Author dropdown:

    add_filter( 'wp_dropdown_users_args', 'add_subscribers_to_dropdown', 10, 2 );
    function add_subscribers_to_dropdown( $query_args, $r ) {
    
        $query_args['who'] = '';
        return $query_args;
    
    }
    add_filter( 'rest_user_query', function( $args, $r ) {
    	if( isset( $args['who'] ) && 'authors' == $args['who'] ) {
    		$args['who'] = 'subscribers';
    	}
    	return $args;
    }, 10, 2 );

    In this case, how can I make your plugin perform automatic update of the user slug to a hash? Actually, I want every user account created on the website to be hashed, be it an author, a shop manager, or any other role.

    Thanks

    Kind regards,

  • The topic ‘Support for non-author roles?’ is closed to new replies.