yuiami.jp Media Link Cards
This plugin adds a custom block that lets you search the Apple ecosystem (App Store, Apple Books, Apple Music/iTunes) and embed a rich card with title, artwork, author/artist, preview button, and a store button. Supports iPhone/iPad/Mac apps, Apple Books, music tracks, albums, and music videos Compa
This plugin adds a custom block that lets you search the Apple ecosystem (App Store, Apple Books, Apple Music/iTunes) and embed a rich card with title, artwork, author/artist, preview button, and a store button.
- Supports iPhone/iPad/Mac apps, Apple Books, music tracks, albums, and music videos
- Compatible with Apple affiliate links (PHG token)
- Country and language selection for search
- Adjustable number of search results
- Simple settings page for defaults
- Link check: finds cards whose items are no longer available and shows them without links
External service
This plugin relies on the iTunes Search API, a third-party service provided by Apple, to search the Apple ecosystem, to retrieve the title, artwork, artist and store URL of the item you pick, and to check whether the items you have already embedded are still available. The plugin cannot provide these features without it.
When a request is made. Only in two situations, both started by a logged-in user of your site:
- 01In the block editor, when a user with the edit_posts capability types a search term and presses Enter.
- 02On the settings page, when an administrator ( manage_options capability) clicks “Start scan” under “Link check”. The plugin then looks up the items embedded on your site to find the ones that are no longer available.
Your site’s front end never contacts the service: published posts render from data already stored in your database, so the plugin makes no request to Apple for your visitors. The card artwork is loaded from Apple’s CDN by the visitor’s browser, as with any externally hosted image.
What is sent. For a search: the search term you typed, the content type (app, book, podcast, music, and so on), the store country, the display language, the number of results, and — only if you have entered one yourself — your affiliate token. For a link check: the Apple item IDs stored in your cards (public identifiers assigned by Apple) and the store country. No personal data, and no information about your site or its visitors, is sent.
Caching. Search responses are stored in your own database as transients for 12 hours to reduce the number of requests. Link check results are stored as options until the next scan.