Developers

apply_filters( 'riff_player_data', array $data )

Filters the data handed to the player script: strings, and the addresses of scripts a feature wants loaded, such as the Listen feature's app on the page that holds its block.

Parameters

$dataarray
Data.

More Information

Usage

add_filter( 'riff_player_data', function ( $data ) {
	return $data;
} );

Source

$data = (array) apply_filters( 'riff_player_data', $data );

Changelog

VersionDescription
4.0.0Introduced.