Can't seem to enqueue wp-admin/js/postbox.js to use with my plugin. What's the correct way to do it?
Can't seem to enqueue wp-admin/js/postbox.js to use with my plugin. What's the correct way to do it?
function add_the_script() {
wp_enqueue_script('postbox');
}
add_action('init', 'add_the_script');
Is that what you tried? If you're trying to load it in the admin panel, try admin_init or admin_print_scripts. (Never enqueued in the admin panel, so just a guess there.)
This topic has been closed to new replies.