This pods migrartion plugin to perform pods migration that are saved as pods.json on themes…
Author: | Dedan Irungu (profile at wordpress.org) |
WordPress version required: | 5.4 |
WordPress version tested: | 5.9.1 |
Plugin version: | 1.0.0 |
Added to WordPress repository: | 23-02-2022 |
Last updated: | 23-02-2022
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://wordpress.org/plugins/mybizna-pod-Mig... |
Total downloads: | 404 |
Click to start download |
This pods migration plugin to perform pods migration that are saved as pods.json on themes or plugins.
I have added new functions to Config.php that has been in development.
https://github.com/pods-framework/pods/pull/4856
The plugin functionality work’s as follows;
- Autodiscover pods.json in themes and those add via pods_config_pre_load_configs.
- prepare an array by converting JSON to an array.
- MD5 the array and compare previously saved MD5 string for previous migrations so as to determine if migration is required.If MD5 is the same the pod is ignored.
- Call add_pod at PodsAPI to save the pod
- Save new MD5 from the array for reference during the next migration.
I have only tested with pods with fields and groups only and it is working both for adding, and updating.
NOTE: The plugin can not work if wordpress pods is not installed and activated https://wordpress.org/plugins/pods/
ChangeLog