| 开发者 | efficiencynext |
|---|---|
| 更新时间 | 2026年3月28日 03:45 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[effcncynxtdc source="Name"] in your content{{variable}} syntax{{#items}}...{{/items}}{{variable}} - Display a simple value{{#section}}...{{/section}} - Loop over arrays or conditional sections{{^section}}...{{/section}} - Show content when a value is empty or missing{{.}} - Current item in a simple loop{{object.property}} - Access nested properties with dot notation[effcncynxtdc source="SourceName"] - Render a configured data source[effcncynxtdc source="SourceName" url="https://..."] - Override the API URL[effcncynxtdc source="SourceName" template="<b>{{name}}</b>"] - Override the template[effcncynxtdc_inline source="SourceName"] - For inline usageefficiencynext-data-connector folder to /wp-content/plugins/PHP 8.0 or higher is required. The plugin is fully tested with PHP 8.3.
Add [effcncynxtdc source="YourSourceName"] in your post or page content. The source name must match a configured data source. You can optionally override the URL or template via shortcode attributes.
Yes! You can use query parameters in your API URLs. For example:
https://api.example.com/data?id={{id}}
The {{id}} will be replaced with the id query parameter from the current page URL.
Use section tags:
{{#items}}<li>{{name}}</li>{{/items}}
Yes. All variable output is automatically HTML-escaped to prevent XSS attacks. Templates are sanitized using WordPress's wp_kses function, which strips dangerous HTML tags like script, iframe, and form elements while preserving safe formatting tags.
Yes! EfficiencyNext Data Connector is fully internationalized. Place your translation files in the wp-content/plugins/efficiencynext-data-connector/languages/ directory using the text domain efficiencynext-data-connector (e.g., efficiencynext-data-connector-fr_FR.po). All admin interface strings, including JavaScript-rendered text, are translatable.
Templates support common structural and formatting tags including: table elements, divs, spans, paragraphs, headings, lists, links, images, strong, em, code, pre, and semantic HTML5 elements. Script, iframe, form, and other potentially dangerous tags are stripped.