| 1 |
<?php |
| 2 |
|
| 3 |
namespace IvyForms\Services\Changelog; |
| 4 |
|
| 5 |
class ChangelogService |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Get changelog data with translated strings. |
| 9 |
* |
| 10 |
* @return array{ |
| 11 |
* version: string, |
| 12 |
* release_date: string, |
| 13 |
* features: array<array{text: string}>, |
| 14 |
* improvements: array<array{text: string}>, |
| 15 |
* bugfixes: array<array{text: string}> |
| 16 |
* } |
| 17 |
*/ |
| 18 |
public static function getChangelogData(): array |
| 19 |
{ |
| 20 |
$changelogData = [ |
| 21 |
'version' => IVYFORMS_VERSION, |
| 22 |
'release_date' => '2026-06-04', |
| 23 |
'features' => [ |
| 24 |
['text' => __('Added Slider field.', 'ivyforms')], |
| 25 |
['text' => __('Added GDPR field.', 'ivyforms')], |
| 26 |
['text' => __('Added MCP integration for AI agents (WordPress 6.9+).', 'ivyforms')], |
| 27 |
], |
| 28 |
'improvements' => [ |
| 29 |
['text' => __('Improved conditional logic and notification workflows.', 'ivyforms')], |
| 30 |
['text' => __('Refactored forms and entries tables for better |
| 31 |
performance and reliability.', 'ivyforms')], |
| 32 |
], |
| 33 |
'bugfixes' => [ |
| 34 |
['text' => __('Fixed forms and entries table layout, date pickers, |
| 35 |
and bulk actions after failed API calls.', 'ivyforms')], |
| 36 |
], |
| 37 |
]; |
| 38 |
|
| 39 |
/** |
| 40 |
* Filter changelog data to allow Pro plugin to add its own changelog entries |
| 41 |
* |
| 42 |
* @param array $changelogData The changelog data array |
| 43 |
* @return array Modified changelog data |
| 44 |
*/ |
| 45 |
return apply_filters('ivyforms/changelog/get_data', $changelogData); |
| 46 |
} |
| 47 |
} |
| 48 |
|