| 开发者 | principiante |
|---|---|
| 更新时间 | 2026年11月13日 00:55 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[swapfeed] and a Swapfeed block for the block editor.swapfeed folder to /wp-content/plugins/ or install the zip from Plugins → Add New → Upload.[swapfeed] anywhere shortcodes work.In the reader's browser (localStorage). They stay hidden on that device until the reader clicks "Show hidden" or clears site data.
Yes. The page is cached as usual; dismissing and refilling happen in the browser through the WordPress REST API.
The report stores only anonymous daily totals per category and per post. No IP address, cookie or identifier is stored. A salted hash of the IP is kept for one hour only to limit abuse, then it expires.
/wp-json/swapfeed/v1/items returns the same public post data that is already on the page (title, link, image, excerpt), so the feed can refill dismissed slots without reloading. /wp-json/swapfeed/v1/stat only accepts an action (dismiss / undo), a post ID and a term ID, validates that the post is published, and is limited to 120 events per hour per visitor. It can be switched off in Settings → Swapfeed.
count, columns, post_type, category, tag, exclude, offset, filters, image, excerpt, date, term, allow_term, title. Example: [swapfeed count="9" columns="3" category="news" filters="yes"]. Full list in Settings → Swapfeed → How to use.
swapfeed_taxonomy to choose the taxonomy used for labels, filter chips and "Hide everything from…" (e.g. a city taxonomy for real-estate listings).swapfeed_js_config so multilingual plugins can localise the REST URLs and labels.