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( '&#8220;%s&#8221;', '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.

  • And what is the actual question, looks more like you do for me :) - Vlad
  • Yes, I will be glad to any answer, the implementation option, the link to the manual on similar topics :) - waspmax1

0