Àpèjúwe
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:
- Zero Dependencies Ìtumọ̀ Yorùbá: – No external libraries required, pure PHP 8.0+ code
- PHP 8.3 Compatible Ìtumọ̀ Yorùbá: – Built from the ground up for modern PHP
- Shortcode Support Ìtumọ̀ Yorùbá: – Use
[effcncynxtdc source="Name"]in your content - Mustache-style Templates Ìtumọ̀ Yorùbá: – Familiar
{{variable}}syntax - Loop Support Ìtumọ̀ Yorùbá: – Iterate over arrays with
{{#items}}...{{/items}} - Secure Ìtumọ̀ Yorùbá: – All output is HTML-escaped, templates are sanitized with wp_kses
- Smart Admin Interface Ìtumọ̀ Yorùbá: – Add, edit, and delete data sources with a modern UI
- API Preview Ìtumọ̀ Yorùbá: – Test your API endpoints and discover available fields right in the editor
- Template Helpers Ìtumọ̀ Yorùbá: – Insert common template patterns with one click
- Translation Ready Ìtumọ̀ Yorùbá: – Fully internationalized with text domain and language file support
Template Syntax:
{{variable}}Ìtumọ̀ Yorùbá: – Display a simple value{{#section}}...{{/section}}Ìtumọ̀ Yorùbá: – Loop over arrays or conditional sections{{^section}}...{{/section}}Ìtumọ̀ Yorùbá: – Show content when a value is empty or missing{{.}}Ìtumọ̀ Yorùbá: – Current item in a simple loop{{object.property}}Ìtumọ̀ Yorùbá: – Access nested properties with dot notation
Shortcode Usage:
[effcncynxtdc source="SourceName"]Ìtumọ̀ Yorùbá: – Render a configured data source[effcncynxtdc source="SourceName" url="https://..."]Ìtumọ̀ Yorùbá: – Override the API URL[effcncynxtdc source="SourceName" template="<b>{{name}}</b>"]Ìtumọ̀ Yorùbá: – Override the template[effcncynxtdc_inline source="SourceName"]Ìtumọ̀ Yorùbá: – For inline usage
Configuration
- Click Add New Source to create a data source
- Enter a Source Name (used with shortcodes and for identification)
- A Placeholder is auto-generated (e.g.,
{{Positions}}) Ìtumọ̀ Yorùbá: – this goes in your page/post content - Enter your API URL that returns JSON data
- Click Preview API to see the JSON response and available template fields
- Create your Template using Mustache-style syntax Ìtumọ̀ Yorùbá: – click the available fields to insert them
- Toggle Inline if the placeholder appears within a paragraph
Ìgbéwọlẹ̀
- Upload the
efficiencynext-data-connectorfolder to/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings Data Connector in the admin menu to configure your data sources
FAQ
-
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 theidquery 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Ìtumọ̀ Yorùbá: ’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 domainefficiencynext-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.
Àwọn àgbéyẹ̀wò
Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.
Àwọn Olùkópa & Olùgbéejáde
“EfficiencyNext Data Connector” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.
Àwọn OlùkópaTúmọ̀ “EfficiencyNext Data Connector” sí èdè rẹ.
Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?
Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.
Àkọsílẹ̀ àwọn àyípadà
1.0.0
- Initial release for WordPress.org
- Modern admin interface with add/edit/delete source management
- AJAX-powered settings with modal editor
- API preview with automatic field discovery
- Template helper toolbar with common patterns
- WordPress shortcode support: [effcncynxtdc] and [effcncynxtdc_inline]
- Input sanitization: wp_kses for templates, esc_url_raw for URLs, placeholder validation
- Mustache-style template engine with loops, conditionals, inverted sections, and dot notation
- Zero external dependencies, PHP 8.0+ compatible
- Full internationalization (i18n) with load_plugin_textdomain and translatable JavaScript strings
- Automatic migration from pre-release storage format
1.0.1
- Added support for Basic Authentication and API Key Authentication