How can I selectively print scripts to the footer of certain admin pages?
There’s an in_footer parameter that you can pass to wp_enqueue_scripts – does that work? I would hook to admin_enqueue_scripts, check the $page for location, and enqueue your script there, with ‘in_footer’ as true. Example: add_action( ‘admin_enqueue_scripts’, ‘enqueue_my_script’ ); function enqueue_my_script( $page ) { if ($page !== ‘edit.php’) return; wp_enqueue_script( ‘my-script’, ‘http://path/to/my/local/script’, null, null, true ); … Read more