yan-k
1/30/2016 - 9:20 PM

Get video length in WordPress

Get video length in WordPress

<?php

$video_meta = get_post_meta( $attachment_ID, '_wp_attachment_metadata', true );
echo $video_meta['length_formatted'];