Title: Remove PHP_INT_MAX from enqueue_scripts
Last modified: October 5, 2021

---

# Remove PHP_INT_MAX from enqueue_scripts

 *  Resolved [joshcummingsdesign](https://wordpress.org/support/users/joshcummingsdesign/)
 * (@joshcummingsdesign)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/remove-php_int_max-from-enqueue_scripts/)
 * helpful/core/modules/class-frontend.php line 49 uses PHP_INT_MAX as the add_action
   priority for wp_enqueue_scripts. Doing this makes it impossible to customize 
   how the script loading occurs and prevents users from hooking into the plugin.
   It would be more developer-friendly to use a sane number here like 100.
 * A good use case is that on our site, we only want the Helpful scripts to be enqueued
   on the pages that actually use Helpful, where right now it is enqueued site-wide.
    -  This topic was modified 4 years, 7 months ago by [joshcummingsdesign](https://wordpress.org/support/users/joshcummingsdesign/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/remove-php_int_max-from-enqueue_scripts/#post-14940838)
 * [@joshcummingsdesign](https://wordpress.org/support/users/joshcummingsdesign/)
 * Good point, this is still a legacy from older versions. I’ll put that on my todo
   list!
 * Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Remove PHP_INT_MAX from enqueue_scripts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/helpful.svg)
 * [Helpful](https://wordpress.org/plugins/helpful/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/helpful/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/helpful/)
 * [Active Topics](https://wordpress.org/support/plugin/helpful/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/helpful/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/helpful/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/remove-php_int_max-from-enqueue_scripts/#post-14940838)
 * Status: resolved