fix: undefined function wp_read_video_metadata

This commit is contained in:
vnmedeiros 2020-11-17 11:33:32 -03:00
parent 6e6e6a3a46
commit 6bb73be0fa
1 changed files with 1 additions and 0 deletions

View File

@ -195,6 +195,7 @@ class Media {
// Include image.php
require_once( ABSPATH . 'wp-admin/includes/image.php' );
require_once( ABSPATH . 'wp-admin/includes/media.php' );
// Define attachment metadata
$attach_data = wp_generate_attachment_metadata( $attach_id, $file_path );