Created
July 25, 2019 09:02
-
-
Save jonathanbossenger/fccde3a070f427914f9023b4752817c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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