WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

getid3_lyrics3::Lyrics3LyricsTimestampParse() public WP 1.0

Это метод класса: getid3_lyrics3{}

Хуков нет.

Возвращает

true/false.

Использование

$getid3_lyrics3 = new getid3_lyrics3();
$getid3_lyrics3->Lyrics3LyricsTimestampParse( $Lyrics3data );
$Lyrics3data(массив) (обязательный) (передается по ссылке — &)

Код getid3_lyrics3::Lyrics3LyricsTimestampParse() WP 5.5.1

wp-includes/ID3/module.tag.lyrics3.php
<?php
public function Lyrics3LyricsTimestampParse(&$Lyrics3data) {
	$lyricsarray = explode("\r\n", $Lyrics3data['raw']['LYR']);
	$notimestamplyricsarray = array();
	foreach ($lyricsarray as $key => $lyricline) {
		$regs = array();
		unset($thislinetimestamps);
		while (preg_match('#^(\\[[0-9]{2}:[0-9]{2}\\])#', $lyricline, $regs)) {
			$thislinetimestamps[] = $this->Lyrics3Timestamp2Seconds($regs[0]);
			$lyricline = str_replace($regs[0], '', $lyricline);
		}
		$notimestamplyricsarray[$key] = $lyricline;
		if (isset($thislinetimestamps) && is_array($thislinetimestamps)) {
			sort($thislinetimestamps);
			foreach ($thislinetimestamps as $timestampkey => $timestamp) {
				if (isset($Lyrics3data['synchedlyrics'][$timestamp])) {
					// timestamps only have a 1-second resolution, it's possible that multiple lines
					// could have the same timestamp, if so, append
					$Lyrics3data['synchedlyrics'][$timestamp] .= "\r\n".$lyricline;
				} else {
					$Lyrics3data['synchedlyrics'][$timestamp] = $lyricline;
				}
			}
		}
	}
	$Lyrics3data['unsynchedlyrics'] = implode("\r\n", $notimestamplyricsarray);
	if (isset($Lyrics3data['synchedlyrics']) && is_array($Lyrics3data['synchedlyrics'])) {
		ksort($Lyrics3data['synchedlyrics']);
	}
	return true;
}