[ 'update_backup_history', 10, 2 ], ]; } /** * Updates backup history after completing history * * @param string $key The backup key. * @param array $backups The backups data. * * @return void */ public function update_backup_history( string $key, array $backups ): void { set_site_transient( $key, $backups, YEAR_IN_SECONDS ); } }