Added tagline data to coauthors/v1 API endpoint for use in the new block
Added placeholder data for tagline when author is unknown, for example when editing the author archive template.
Social Links
I think I figured out a version of this that works without custom blocks. It might be improved by using the block binding API in the future but that's not available for social links yet.
Added a filter on register_block_type_args for core/social-link to update its uses_context to include coauthors.
Added a filter on render_block forcore/social-link to use the coauthor context to fill the social links when they are empty.
Added social links data to coauthors/v1 API endpoint based on platforms we add in Cata Co-Authors Plus: twitter, instagram, tiktok.
Note on Using Social Icons
You can put the regular Social Icons block inside the Co-Authors block. The Social Link blocks will look invalid because you haven't filled in the URL, but our filter on render_block will fill it in on render.
How To Test
These need to be coupled with Co-Authors Plus 3.6+
[x] Tagline and Social Links work to recreate the author card on Collective World
[x] Tagline and Social Links work to recreate the author profile on Thought Catalog
Related Issues
What Was Accomplished
Tagline
coauthors/v1
API endpoint for use in the new blockSocial Links
I think I figured out a version of this that works without custom blocks. It might be improved by using the block binding API in the future but that's not available for social links yet.
register_block_type_args
forcore/social-link
to update itsuses_context
to include coauthors.render_block
forcore/social-link
to use the coauthor context to fill the social links when they are empty.coauthors/v1
API endpoint based on platforms we add in Cata Co-Authors Plus: twitter, instagram, tiktok.Note on Using Social Icons
You can put the regular Social Icons block inside the Co-Authors block. The Social Link blocks will look invalid because you haven't filled in the URL, but our filter on
render_block
will fill it in on render.How To Test
These need to be coupled with Co-Authors Plus 3.6+