Add Threads embed block variation#76502
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @pestevez. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @pestevez! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
What?
Adds Threads as an embed block variation, allowing users to embed Threads posts directly from the block inserter.
Note: This PR depends on Threads being registered as an oEmbed provider in WordPress Core. Threads pages do not include oEmbed discovery
<link>tags, so the embed will only resolve once the Core change lands. See: Core Trac ticket / PR.Why?
Threads recently updated their oEmbed API to drop the access token requirement, making tokenless embedding possible.
This brings Threads in line with other social platforms that already have embed block variations.
How?
embedThreadsIcontoicons.jsusing the same SVG path already used by the social-link Threads iconvariations.jswith URL patterns supporting boththreads.comandthreads.netdomainshttps://www.threads.com/@{username}/post/{shortcode}https://www.threads.com/t/{shortcode}Testing Instructions
/) and search for "Threads"https://www.threads.com/@zuck/post/C1234567890)Testing Instructions for Keyboard
/to open the block inserterScreenshots or screencast
Use of AI Tools
Created using Claude Code (Opus 4.6).