Play Audio Once


Adds an option to the audio block in Gutenberg-editor to prevent the file from being played multiple times.

In the frontend, the option, if activated, is executed on the audio file if the visitor’s browser has JavaScript activated. The fact that an audio file was played is saved in the browser session — not as a cookie. The storage takes place at the moment of playback, which means that it is no longer possible to rewind or fast-forward. The user is not offered an option to reset.


The source-code of this plugin is hosted on GitHub.


  1. Upload «play-audio-once» to the «/wp-content/plugins/» directory.
  2. Activate the plugin through the «Plugins» menu in WordPress.
  3. Choose the newly added option on any audio-block in your project.


I needed a way to play an mp3 clip for a student who would then answer one or more questions. It was very important that the clip could only be played once to prevent the student from playing the clip over and over again before answering the questions. This plugin does exactly that. It's incredibly easy to implement and has been "bullet proof". Thanks and thanks again!
Посмотреть 1 отзыв

Участники и разработчики

«Play Audio Once» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:


«Play Audio Once» переведён на 1 язык. Благодарим переводчиков за их работу.

Перевести «Play Audio Once» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений


  • Initial commit


  • Updated dependencies


  • Updated compatibility-flag for WordPress 6.0


  • Updated compatibility-flag for WordPress 6.0.1
  • Added build-system in repository