| 开发者 | tuliocareli |
|---|---|
| 更新时间 | 2026年11月26日 20:38 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[npwfs_now_playing] shortcode.
Features
prefers-reduced-motion) and subtle animated equalizer bars.uninstall.php handler to clean all stored options and transients from the database upon deletion.now-playing-widget-for-spotify to your /wp-content/plugins/ directory, or install the .zip archive via Plugins > Add New > Upload Plugin.[npwfs_now_playing] anywhere on your site (posts, pages, block themes, Elementor, or footer widget areas).No. In strict compliance with WordPress.org Guidelines 7 & 9, this plugin does not track website visitors, does not store tracking cookies, and does not send any visitor data to Spotify or any third party. All external API requests are performed strictly server-to-server between your WordPress host and Spotify to display the site owner's playback, which is then served sanitized to visitors via a local WordPress REST endpoint.
No. Assets (CSS/JS) are only enqueued when the shortcode is actually rendered on the current page. Track data is cached via WordPress Transients, and front-end polling is throttled and paused when the user switches tabs.
Never. All requests to the Spotify Accounts API and Web API are executed by your WordPress server in PHP. The browser only receives the public track metadata (song name, artist, cover image URL, Spotify link).
The plugin automatically detects the idle state and queries your recently played history, displaying your last track with a "Last played" label.
Yes. You can use standard WordPress filters in your theme's functions.php:
add_filter('npwfs_cache_ttl', function() { return 60; }); (server cache seconds)add_filter('npwfs_poll_interval', function() { return 20; }); (frontend refresh seconds)Deactivation preserves your credentials so you can reactivate without repeating setup. Deleting the plugin through WordPress triggers uninstall.php, which permanently deletes all stored options and transients.
wp_create_nonce during OAuth2 flow.[npwfs_now_playing] with multi-instance DOM support.prefers-reduced-motion accessibility support.uninstall.php to completely clean up database options and transients on deletion.tsw_*).