Album image in Media Player for Custom Post Type with Custom Taxonomy

[ad_1]

First of all, thanks for your great plugin! This is a request to re-introduce the ssp_episode_image filter.

I am working on a site that will host multiple podcasts and courses. Courses behave so differently from ‘ordinary’ podcasts, that I want to use a custom post type (CPT) “unit“ and a custom taxonomy “course” that plays a similar role as SSP’s series taxonomy for that CPT; that is, posts of the type “unit” won’t be assigned a term from SSP’s series taxonomy.

However, I would also like users to be able to assing ‘album art’ images for the media player per course (i.e., per “course” taxonomy term), rather than only per individual course unit (i.e., per “unit” post). SSP’s Filter Reference mentions a filter ssp_episode_image, and I thought I could use that filter to override the episode image for posts of the type “unit.” But I cannot. I investigated, and it appears to me that the album art image is loaded via SeriouslySimplePodcasting\Repositories\Episode_Repository::get_album_art, and that method does not invoke the ssp_episode_image filter.

Since you mention that filter in your documentation, I am not sure whether this is a bug, or whether the documentation is simply outdated. Either way, if you could (re-)add a filter that allows to change the album art image shown for a post in the media player, that would be very much appreciated! I would submit a Pull Request, but the GitHub repository is definitely outdated.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer