1, 'autoload' => false, 'menu_title' => static function () { return __( 'CatalogRelay settings', 'catalogrelay' ); }, 'page_title' => static function () { return __( 'CatalogRelay Safe Importer settings', 'catalogrelay' ); }, 'groups' => array( array( 'id' => 'retention', 'title' => static function () { return __( 'Rollback', 'catalogrelay' ); }, 'fields' => array( array( 'id' => 'retention.snapshot_days', 'type' => 'number', 'label' => static function () { return __( 'Keep rollback snapshots for (days)', 'catalogrelay' ); }, 'default' => 7, 'min' => 1, 'max' => 30, 'help' => static function () { return __( 'After this period an import can no longer be rolled back and its snapshots are deleted. Uploaded files are deleted after 7 days, row logs after 30 days, job summaries after 90 days.', 'catalogrelay' ); }, ), ), ), AlertSettings::group( $d ), array( 'id' => 'uninstall', 'title' => static function () { return __( 'Uninstall', 'catalogrelay' ); }, 'fields' => array( array( 'id' => 'uninstall_delete', 'type' => 'checkbox', 'label' => static function () { return __( 'Delete all CatalogRelay data when the plugin is deleted', 'catalogrelay' ); }, 'default' => true, 'help' => static function () { return __( 'Uploaded files are always deleted. Turn this off to keep the import history, snapshots and settings.', 'catalogrelay' ); }, ), ), ), ), ); } }