Hello! There is a website, files for downloading are located on it, it is necessary to fasten a click counter to the links with the subsequent output of statistics to a separate page of the type “File name - n downloads”.
The name of the files and the download link are generated via the standard, slightly modified wp-playlist ( /wp-includes/media.php ) as follows:
Name -
<span class="wp-playlist-item-meta wp-playlist-item-title"><?php /* translators: playlist item title */ printf( _x( '“%s”', 'playlist item title' ), '{{ data.title }}' ); ?></span> Link -
<a title="Скачать песню" href="{{ data.src }}" download="">Скачать песню</a> Statistics only need admin, I think you can record the result in txt and display on the link. Thanks in advance for the answers.