Viewing 1 replies (of 1 total)
  • 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.)

Viewing 1 replies (of 1 total)

The topic ‘how to enqueue postbox.js’ is closed to new replies.