Changing the color theme in php/js in Podlove Publisher

Hello! I would like to set the color theme of the Player v4 from the API, so it can be set accordingly to the Wordpress Theme. How can I do that? It there any API for changing the theme programmatically?

1 Like

This should work:

add_filter('podlove_player4_config', function ($config) {

	$config['theme']['main'] = '#FFF';
	$config['theme']['highlight'] = '#000';

	return $config;
1 Like

Great! Thank you very much! :grinning: