| 开发者 | bypleaseup |
|---|---|
| 更新时间 | 2026年6月16日 23:09 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
pleaseup-hotspots folder to the /wp-content/plugins/ directory, or install the plugin directly from the WordPress plugin repository.Go to Image Hotspots → Editor, select an image from the Media Library, then click anywhere on the image preview to create a hotspot. Drag it to reposition it, then click the hotspot to edit the HTML content of the popup layer.
Use the shortcode [wphs_image id="123"] where 123 is the attachment ID of the image. You can also use the shortcode in any post, page, or widget area that supports shortcodes.
Yes. Hotspots are stored against the attachment ID, so any block that references that attachment (image block, gallery block, ACF image fields) inherits the configured hotspots when rendered through the [wphs_image] shortcode.
Yes via the [wphs_image] and [wphs_gallery] shortcodes. CSS and JS are enqueued defensively for builders that render shortcodes after wp_head.
Yes. Coordinates are stored as percentages of the natural image dimensions, so they scale with any rendered image size.
Yes. In the per-image settings, switch the hotspot style to Image, upload or choose your custom icon from the Media Library, and save.
Yes. The plugin stores hotspot data as post meta on the attachment, so any image displayed via wp_get_attachment_image() — including ACF image, gallery, and repeater fields — can use the shortcode to render with hotspots.
Yes. When you uninstall the plugin (not just deactivate it), all hotspot settings, attachment meta, and the plugin's custom post type contents (galleries and tooltips) are removed from the database.
.gitkeep placeholder files from the distribution zip (WordPress.org plugin scanner flags any hidden file).<h1> from "WP Hotspots" / "WP Image HotSpots" to "Pleaseup Hotspots" to match the plugin name.pleaseup-hotspots) for the WordPress.org Plugin Directory.<script> or <style> blocks in the rendered shortcode HTML). The dynamic per-instance values are now passed as CSS custom properties on the wrapper.