Linux 软件免费装

EfficiencyNext Data Connector

开发者 efficiencynext
更新时间 2026年3月28日 03:45
PHP版本: 8.0 及以上
WordPress版本: 6.9
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

template api rest JSON external data

下载

1.0.1 1.0.0

详情介绍:

EfficiencyNext Data Connector is a modern, lightweight WordPress plugin that lets you fetch data from external APIs and display it in your posts and pages using simple placeholders, shortcodes, and Mustache-style templates. Key Features: Template Syntax: Shortcode Usage:

安装:

  1. Upload the efficiencynext-data-connector folder to /wp-content/plugins/
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to Settings → Data Connector in the admin menu to configure your data sources

常见问题:

What PHP version is required?

PHP 8.0 or higher is required. The plugin is fully tested with PHP 8.3.

How do I use shortcodes?

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.

Can I use dynamic URLs?

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.

How do I loop over an array?

Use section tags: {{#items}}<li>{{name}}</li>{{/items}}

Is the output secure?

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.

Can I translate the plugin?

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.

What HTML tags are allowed in templates?

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.

更新日志:

1.0.0 1.0.1