| 开发者 | vendidero |
|---|---|
| 更新时间 | 2026年7月9日 22:01 |
| PHP版本: | 5.6 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
[ts_widget id="{widget_id}" product_identifier="{identifier}"]
Use this shortcode to embed a specific widget, e.g.: [ts_widget id="wdg-d6dc1e38-d43b-46aa-123e-232441"]. Please mind that
embedding product-specific widgets by passing an identifier (e.g. sku, gtin, mpn) will only work on product-specific pages.
Hooks
All frontend-related hooks, e.g. to output Trustbadge, Trustcard and Widgets are managed in src/Hooks.php. External assets (e.g. the TS widgets script) are lazy-enqueued
via the WordPress script API as soon as a widget is rendered.
For each widget position (e.g. product_title) a custom hooks is placed, e.g. ts_easy_integration_single_product_title_widgets. This way users may easily customize where/when
to output widgets by attaching custom scripts to it or removing the default logic to output the widget.
To render a widget, 2 templates exist:
templates/widgets/product-widget.php is used for product-related widgets.templates/widgets/service-widget.php is used for service widgets.Learn how to use Trusted Shops with a Plugin.
Please report security bugs found in the source code of the plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.