Skip to content

Commit

Permalink
Possibility for custom actions on save episode image event #1006
Browse files Browse the repository at this point in the history
  • Loading branch information
zahardev committed Mar 30, 2023
1 parent b07c8d5 commit 8d5edce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions php/classes/handlers/class-rss-import-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,10 @@ protected function save_episode_image( $post_id, $image_url ) {

update_post_meta( $post_id, 'cover_image_id', $image_id );

$url = wp_get_attachment_url( $image_id );
update_post_meta( $post_id, 'cover_image', $url );
$local_image_url = wp_get_attachment_url( $image_id );
update_post_meta( $post_id, 'cover_image', $local_image_url );

do_action( 'ssp_rss_import_save_episode_image', $post_id, $image_id, $local_image_url );

return true;
}
Expand Down

0 comments on commit 8d5edce

Please sign in to comment.