Co-Authors-Plus icon indicating copy to clipboard operation
Co-Authors-Plus copied to clipboard

Ajax Suggested Authors return format

Open anthonythorne opened this issue 3 years ago • 1 comments

I have a project that I am on where the return format has sensitive information such as user's email and user login. Due to privacy issues, my client wishes the return format to custom.

e.g

User ID | Full Name | Chapter | Author slug

where Chapter is user meta being a term id that would be converted to a term name.

Unfortunately, I have not worked on a possible solution other than returning empty strings between the |. Is there any way that this format could be filterable?

Where either the sensitive information was wrapped in HTML and class names so it could be visibly hidden with css added in admin head. Or the return format could be anything as long as the first piece is the user id.

anthonythorne avatar Jul 08 '21 23:07 anthonythorne

The issue with obscuring/customizing this information is that JS relies on it to perform the needed actions on select: https://github.com/Automattic/Co-Authors-Plus/blob/44fd892dc1e06b976dd48de6ba6d0687c7bdcb7b/js/co-authors-plus.js#L196

Similar to https://github.com/Automattic/Co-Authors-Plus/issues/809#issuecomment-879169596.

rebeccahum avatar Jul 13 '21 15:07 rebeccahum