Title: Incorrect footer scripts action handle
Last modified: February 2, 2018

---

# Incorrect footer scripts action handle

 *  [mjdigital](https://wordpress.org/support/users/mjdigital/)
 * (@mjdigital)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/incorrect-footer-scripts-action-handle/)
 * I experienced a problem with this plugin conflicting with the Theme My Login 
   plugin whereby scripts enqueued by TML were not being output in the code.
 * On close inspection it appears you are using the action handle “print_footer_scripts”
   on line 22 of glg-functions.php in order to output JavaScript code into the footer.
 * The action “print_footer_scripts” is incorrect – it should be “wp_print_footer_scripts”–
   I’m not too sure how or why it works in the first place as print_footer_scripts
   is a filter not an action and should return a Boolean value to dictate whether
   footer scripts should be printed or not.
 * I have changed the action call to:
 * `add_action( 'wp_print_footer_scripts', 'glg_frontend_wp_footer' );`
 * in the copy I have on one of my sites and all works fine but if you were able
   to verify and test this, then add it to the plugin core that would be great –
   and hopefully save someone else a good few hours debugging.
 * Thanks
 * Mark

The topic ‘Incorrect footer scripts action handle’ is closed to new replies.

 * ![](https://ps.w.org/gallery-lightbox-slider/assets/icon-256x256.png?rev=1225809)
 * [Gallery Lightbox](https://wordpress.org/plugins/gallery-lightbox-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gallery-lightbox-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-lightbox-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-lightbox-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-lightbox-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-lightbox-slider/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mjdigital](https://wordpress.org/support/users/mjdigital/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/incorrect-footer-scripts-action-handle/)
 * Status: not resolved