Description
This plugin puts the player of hearthis.at on your website. There are three ways to do it:
- Paste a link. Put the link to a sound, a set, a profile or a live channel on its own line. WordPress turns it into the player.
- Use the block. Add the block “hearthis.at Player”, paste the link and choose the look in the sidebar.
- Use the shortcode.
[hearthis]https://hearthis.at/LINK_TO_SOUND_SET_OR_PROFILE/[/hearthis]
Under Settings hearthis.at you choose the defaults of every player: look, colors, waveform, size. A preview shows the result before you save. Each block and each shortcode can override the defaults.
Shortcode options
All options are optional.
width– up to 100 a percentage, above 100 pixels. Default: 100 (the full width).height– in pixels, 50 to 1200. Default: 130 for a sound, 150 with the cover image as background, 95 without waveform, 350 for sets and profiles. A live channel is as high as its 16:9 picture unless you set a height.theme–light(default) ordark, for single sounds. The former namestransparentandtransparent_blackstill work.hcolor– accent color: play button, progress and the played part of the waveform. A hex color with or without #.color– color of the waveform. A hex color with or without #.style– waveform:1soft,2bars.block_size– width of the bars, 1 to 10 (withstyle="2").block_space– gap between the bars, 0 to 10 (withstyle="2").background–1shows the cover image as the background of the player (single sounds).cover–1hides the cover image.waveform–1hides the waveform (single sounds).comments–0hides comments and reactions.stats–0hides plays and other numbers.list_covers–0hides the covers in the list of a set or a profile.liststyle–singleshows one player per sound instead of a list, for public sets and profiles (up to 50).css– address of a CSS file the player loads in addition.url– the link, as an alternative to writing it between the tags:[hearthis url="https://hearthis.at/…"]
The option names of old versions (color2, params, digitized_size, digitized_space) still work.
Examples
A sound:
[hearthis]https://hearthis.at/djforce/baesser-forcesicht-dnbmix/[/hearthis]
A set:
[hearthis]https://hearthis.at/djforce/set/dubstep-mixes/[/hearthis]
A profile with a blue accent color:
[hearthis hcolor=”0000ff”]https://hearthis.at/djforce/[/hearthis]
A sound in the dark look, without comments and numbers:
[hearthis theme=”dark” comments=”0″ stats=”0″]https://hearthis.at/djforce/baesser-forcesicht-dnbmix/[/hearthis]
A sound with its cover image as background:
[hearthis background=”1″]https://hearthis.at/djforce/baesser-forcesicht-dnbmix/[/hearthis]
A sound at half the width, without waveform:
[hearthis width=”50″ waveform=”1″]https://hearthis.at/djforce/baesser-forcesicht-dnbmix/[/hearthis]
A set, 500 pixels high:
[hearthis height=”500″]https://hearthis.at/djforce/set/dubstep-mixes/[/hearthis]
Each sound of a set as its own player:
[hearthis liststyle=”single”]https://hearthis.at/djforce/set/dubstep-mixes/[/hearthis]
A live channel:
[hearthis]https://hearthis.at/YOUR_PROFILE/live/[/hearthis]
External services
The players are provided by hearthis.at, so this plugin connects to hearthis.at:
- When a page with a player is displayed, the browser of the visitor loads the player from
hearthis.atin an iframe – as with any embedded player. hearthis.at receives what a browser sends with every request (IP address, browser, the address of your page). - When WordPress prepares a player, your server asks
api-v2.hearthis.atorhearthis.at/oembed/for the sound behind a link. It sends the link you entered and what WordPress sends with every request of this kind: its version and the address of your website. The answer is stored on your website (a sound for a month, a list for six hours), so this does not happen on every page view. A link without an answer is asked again later.
The service is provided by hearthis.at: terms of use, privacy policy.
Screenshots




Blocks
This plugin provides 1 block.
- hearthis.at Player The hearthis.at player for a sound, a set, a profile or a live channel.
Installation
- Install the plugin from the plugin directory of your WordPress, or upload the folder
hearthisatto/wp-content/plugins/. - Activate it under Plugins.
- Paste a hearthis.at link into a post, add the block “hearthis.at Player” or write a
[hearthis]shortcode. - Optional: choose the defaults under Settings hearthis.at.
FAQ
-
Do I need a hearthis.at account?
-
No. Every public sound, set and profile on hearthis.at can be embedded.
-
Can I embed a private sound or a private set?
-
Yes, with its secret link – the one you get from “Share” on hearthis.at. Use it in the block or in the shortcode like any other link.
-
I pasted a link and it stays a link.
-
A link becomes a player when it stands on its own line. Links to sounds and sets are also recognised by the block “Embed” of WordPress. If the player still does not appear, your server may not be able to reach hearthis.at – ask your hosting provider about outgoing connections.
-
A link pasted directly looks different from my settings.
-
A pasted link to a sound or a set shows the standard player of hearthis.at. The settings apply to the block “hearthis.at Player” and to the
[hearthis]shortcode. -
I changed a set on hearthis.at, but the single players still show the old sounds.
-
With
liststyle="single"the plugin remembers the sounds of a set or a profile for six hours. The player with a list (the default) is always up to date. -
Can I style the player with my own CSS?
-
Yes. Enter the address of a CSS file in the settings or in the option
css. The player loads it in addition to its own styles. -
Where can I get help?
-
In the support forum of this plugin, or open an issue on GitHub.
Reviews
Contributors & Developers
“hearthis.at” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “hearthis.at” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1.0
- Fixed: a shortcode with a single sound stopped the whole page with an error on PHP 8. All notices and warnings on PHP 8 are gone.
- Fixed: the
heightoption had no effect. - New: a hearthis.at link on its own line becomes the player (oEmbed), for sounds, sets, profiles and live channels.
- New: the block “hearthis.at Player” for the block editor.
- New: live channels (
https://hearthis.at/PROFILE/live/), private sounds and private sets with their secret link. - New: the options
comments,statsandlist_covers, the theme nameslightanddarkand the optionurl. - New: the players use the current embed code of hearthis.at (sharing and copying from within the player, lazy loading, a title for screen readers).
- Faster: the sound behind a link is looked up once and remembered, not on every page view. If hearthis.at cannot be reached, the player of a public sound, a set or a profile is still shown.
- Settings: every value is checked when it is saved, the preview takes the link of a sound instead of its ID and follows the form.
- Translations: German, Spanish and French, now also in the block editor. The text domain is
hearthisat. - Sets and profiles as single players are limited to 50.
- The waveform color now also applies to the dark look.
- Requires WordPress 6.4 and PHP 7.4. Tested with WordPress 6.4 and 7.1 on PHP 8.4.
1.0.3
- Updated WordPress compatibility to version 6.4.3
- Added admin Live Preview feature with real-time customization
- Integrated complete internationalization support (German, Spanish, French)
- Fixed text domain consistency for proper translation loading
- Added dynamic track ID input for preview functionality
- Enhanced admin interface with separate Light and Dark theme previews
- Added copy-paste embed code generation for both themes
- Improved color picker integration with live preview updates
1.0.2
- minor bug fix with track detection and height bugfixes
1.0.1
- minor bug fix with the theme transparent_black
- changed some php and readme documentations
1.0.0
- removed the httpful Phar file so that this works completely without it
- now based on the Plugin API, Coding Standards, and Documentation Standards
- added the latest hearthis.at API functions for the shortcode params
- new backend/wp-admin menu with color pickers
0.6.5
- several bugfixes and reformatting code to object based programming standard
0.6.4
- added a trailing slash to an URL if it does not exist
0.6.3
- added a shortcode option as a hook to transform a playlist url into single widgets for each track from this set instead of displaying a list view
0.6.2
- fixed and reformatted the original code written by Benedikt Groß, the founder of hearthis.at. This release fixes deprecated or wrong options and removes errors, so the plugin works in the latest WordPress version.