| @@ -9,8 +9,12 @@ | ||
| 9 | 9 | |
| 10 | 10 | add_action( 'wp_ajax_eos_plugin_reviews_restore_version','eos_plugin_reviews_restore_version' ); |
| 11 | 11 | /** |
| 12 | 12 | * Restore plugin version |
| 13 | + * This function is triggered by an Ajax request to restore a plugin version. | |
| 14 | + * It verifies the nonce for security, checks user permissions, and restores the plugin version | |
| 15 | + * from a specified directory. It unzips the plugin version if it is in zip format, renames the | |
| 16 | + * plugin directory, and activates the plugin. | |
| 13 | 17 | * |
| 14 | 18 | * @since 0.0.1 |
| 15 | 19 | */ |
| 16 | 20 | function eos_plugin_reviews_restore_version(){ |