Returns Call to undefined function wp_generate_attachment_metadata()
-
It returns “Call to undefined function wp_generate_attachment_metadata() …” when I try to upload an image from the frontend. When I change the line #101 of the main plugin file to “include_once( ABSPATH . ‘wp-admin/includes/image.php’ );” instead of “require_once( admin_url() . ‘includes/image.php’ );”, it starts working.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Returns Call to undefined function wp_generate_attachment_metadata()’ is closed to new replies.