Skip to content

Instantly share code, notes, and snippets.

@jonathanbossenger
Created July 25, 2019 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanbossenger/fccde3a070f427914f9023b4752817c7 to your computer and use it in GitHub Desktop.
Save jonathanbossenger/fccde3a070f427914f9023b4752817c7 to your computer and use it in GitHub Desktop.
<?php
// add audio file duration to a podcast when using Simple Bulk Uploader
global $ss_podcasting;
$duration = $ss_podcasting->get_file_duration( $file );
if ( $duration ) {
update_post_meta( $post_id, 'duration', $duration );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment