Hello, first of all, I'm very new to the html world. While I was looking to do some changes to my page I made a mistake and now I have this message: PHP Parse error: syntax error, unexpected end of file in line 6076. That line is the end of the code. Look a this.
I tried removing the '}' and nothing. I'm editing and reuploading to FileZilla but nothing. My page gives me error HTML 500.
I don't know what's up with that '}' or if I need to add another one or what. Please help. Thanks in advance.
Code:
function wp_privacy_delete_old_export_files() { `require_once( ABSPATH . 'wp-admin/includes/file.php' );` `$exports_dir = wp_privacy_exports_dir();` `$export_files = list_files( $exports_dir, 100, array( 'index.html' ) );`
Code:
`/**` `* Filters the lifetime, in seconds, of a personal data export file.` `*` `* By default, the lifetime is 3 days. Once the file reaches that age, it will automatically` `* be deleted by a cron job.` `*` `* @since 4.9.6` `*` `* @param int $expiration The expiration age of the export, in seconds.` `*/como se cierran las llaves html` `$expiration = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );`
Code:
`foreach ( (array) $export_files as $export_file ) {` `$file_age_in_seconds = time() - filemtime( $export_file );` `if ( $expiration < $file_age_in_seconds ) {` `unlink( $export_file );` }
I don't know what's up with that '}' or if I need to add another one or what. Please help. Thanks in advance.
Kommentar