fix: undefined function wp_read_video_metadata
This commit is contained in:
parent
6e6e6a3a46
commit
6bb73be0fa
|
@ -195,6 +195,7 @@ class Media {
|
||||||
|
|
||||||
// Include image.php
|
// Include image.php
|
||||||
require_once( ABSPATH . 'wp-admin/includes/image.php' );
|
require_once( ABSPATH . 'wp-admin/includes/image.php' );
|
||||||
|
require_once( ABSPATH . 'wp-admin/includes/media.php' );
|
||||||
|
|
||||||
// Define attachment metadata
|
// Define attachment metadata
|
||||||
$attach_data = wp_generate_attachment_metadata( $attach_id, $file_path );
|
$attach_data = wp_generate_attachment_metadata( $attach_id, $file_path );
|
||||||
|
|
Loading…
Reference in New Issue