內容簡介
這是一個為 WordPress 設計的簡潔易用、能顯示最近播放 Last.FM 音樂的外掛程式。
外掛標籤
開發者團隊
② 後台搜尋「Last.FM Recently Played for WordPress」→ 直接安裝(推薦)
原文外掛簡介
Last.FM Recently Played is a modern, secure WordPress plugin that displays your recently played tracks from Last.FM in a beautiful widget.
Key Features:
🎵 Display recent Last.FM scrobbles in a widget, shortcode, or template function
📝 Shortcode: Use [lastfm_tracks user="username"] in posts/pages
🎨 Template Function: Use lastfm_display_tracks() in theme files
🔒 Secure API key storage in WordPress settings
⚡ Built-in caching for optimal performance
📱 Responsive design with mobile support
🎨 Clean, customizable CSS
🛡️ Modern security standards (proper escaping, validation, nonces)
🚀 PHP 8.0+ compatible with strict types
🌐 Translation ready with proper text domains
♿ Accessible markup with proper attributes
Requirements:
A Last.FM account with scrobbling enabled
A Last.FM API key is optional – plugin includes a default shared key, but getting your own is recommended for better performance
Privacy & Security:
Your API key is stored securely in WordPress options
All API requests use HTTPS
Output is properly sanitized to prevent XSS attacks
Transient caching reduces API calls and improves performance
Third-Party Services
This plugin connects to the Last.FM API to retrieve your music listening data:
* Service: Last.FM Web Services API
* API Documentation: https://www.last.fm/api
* Terms of Service: https://www.last.fm/api/tos
* Privacy Policy: https://www.last.fm/legal/privacy
Data sent to Last.FM: Your Last.FM username (configured in widget settings)
Data received: Your user profile information and recently played tracks
