(new) media-upload on admin.php – UNDEFINED
-
Hello,
i have write last week a plugin. That plugin use the new media-upload function. That works fine.
Today i need it for an other Plugin and set up the plugin for the new media-upload.
I have enqueue the Scripts as of my last plugin.I have following error, when i try that:
wp.media.frames/wp.media are undefined
ticket_image_window = wp.media.frames.ticket_image_window = wp.media({ title: "TITLE", button: { text: "BUTTON" }, multiple: false });
How that works not?
wp_enqueue_script('jquery'); wp_enqueue_script('thickbox'); wp_enqueue_script('media-models'); wp_enqueue_script('media-upload');
i have add all needed scripts. it don’t work on the admin.php.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘(new) media-upload on admin.php – UNDEFINED’ is closed to new replies.