Linux 软件免费装
Banner图

SLG Guest Favorites – Save for Later & Wishlist

开发者 quizpin
更新时间 2026年5月4日 04:29
PHP版本: 8.0 及以上
WordPress版本: 6.9
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

ajax shortcode wishlist favorites save for later

下载

0.1.13

详情介绍:

SLG Guest Favorites lets visitors save posts for later whether they are browsing as guests or logged-in users. Current features: This version intentionally keeps scope focused and does not include:

安装:

  1. Upload the slg-guest-favorites folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Create a page such as My Favorites and add the [slg_gf_favorites] shortcode.
  4. Go to Settings > SLG Guest Favorites and select that page in the Favorites page dropdown.
  5. Leave auto-insert enabled to show the save button on supported singular posts, or use [slg_gf_favorite_button] manually.
  6. Theme developers can also render the shared button markup directly with slg_gf_favorite_button().

屏幕截图:

  • The favorite button updates to show the saved state, confirming the item is added to favorites.
  • The My Favorites page lists all saved posts, giving users quick access to their saved content.
  • Plugin settings in the WordPress admin allow full control over guest favorites, post types, and button display.

常见问题:

Where are favorites stored?

Guest favorites are stored in the visitor's browser on that device. Logged-in favorites are stored in user meta. If a visitor later logs in, the current plugin behavior can merge guest favorites into the account.

Is there a template function for theme developers?

Yes. Theme and plugin developers can call slg_gf_favorite_button() to render the same button markup used by the shortcode and public renderer. Pass a post ID when needed, or let the function resolve the current post where possible.

Which post types are supported?

Public post types selected in Settings > SLG Guest Favorites are supported. By default, only standard posts are enabled.

Is the plugin cache-compatible?

The plugin is designed to stay cache-friendly by keeping guest state in the browser and updating the UI client-side where needed. If your site uses aggressive full-page caching, a CDN, or security rules, make sure normal frontend AJAX requests can still reach admin-ajax.php.

What if browser storage is blocked?

Guest favorites rely on browser storage in the current version. If the browser is blocking saved items, heavily restricted, or cleared, guest favorites may not persist after reload. Logged-in favorites are stored in the user account and are not affected in the same way.

What happens on uninstall?

The plugin removes its own saved settings. User favorites stored in user meta are preserved by default to avoid destructive data loss.

Does it create database tables?

No. This plugin does not create custom database tables in the current version.

更新日志:

0.1.13 0.1.12 0.1.11 0.1.10 0.1.9 0.1.8 0.1.7 0.1.6 0.1.5 0.1.4 0.1.0