Title: Init hook optimization
Last modified: August 21, 2016

---

# Init hook optimization

 *  Resolved [TatumCreative](https://wordpress.org/support/users/tatumcreative/)
 * (@tatumcreative)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/init-hook-optimization/)
 * Is it possible to change the main init hook to “admin_init” instead of “plugins_loaded”?
   This way the plugin will only be loaded on the admin side and not the public 
   facing side.
 * Plus the “plfi_supported_post_types” hook is not available in the theme code 
   as it’s already fired by the time the theme functions file is called.
 * Thanks!
 * [https://wordpress.org/plugins/post-list-featured-image/](https://wordpress.org/plugins/post-list-featured-image/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Paul](https://wordpress.org/support/users/pcgrejaldo/)
 * (@pcgrejaldo)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/init-hook-optimization/#post-5096180)
 * Hi Tatum, yeah sure. I’m rewriting the plugin so I’ll make sure this changes 
   are implemented in the next update. Although, the next plugin update will require
   at least PHP 5.3 (just a heads up).
 *  Plugin Author [Paul](https://wordpress.org/support/users/pcgrejaldo/)
 * (@pcgrejaldo)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/init-hook-optimization/#post-5096185)
 * Though I think, admin_init hook is a bit late for some functions after all…
 *  Thread Starter [TatumCreative](https://wordpress.org/support/users/tatumcreative/)
 * (@tatumcreative)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/init-hook-optimization/#post-5096250)
 * For my own use cases I write most all of my website code in the themes area, 
   so it’s mainly having access to the “plfi_supported_post_types” hook I’m concerned
   with for my own uses.
 * Thanks!
 *  Plugin Author [Johnny](https://wordpress.org/support/users/jakzam/)
 * (@jakzam)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/init-hook-optimization/#post-5096388)
 * Hey Tatum-
 * If you haven’t done so yet, can you update to the lastest version and see if 
   this request has been satisfied?
 * Thanks,
 * Johnny
 *  Plugin Author [Johnny](https://wordpress.org/support/users/jakzam/)
 * (@jakzam)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/init-hook-optimization/#post-5096401)
 * I am closing this due to inactivity. If you have any further issues, please feel
   free to repost.
 * Johnny
 *  Thread Starter [TatumCreative](https://wordpress.org/support/users/tatumcreative/)
 * (@tatumcreative)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/init-hook-optimization/#post-5096402)
 * Sorry, I haven’t had a chance to check it yet. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Init hook optimization’ is closed to new replies.

 * ![](https://ps.w.org/post-list-featured-image/assets/icon-256x256.jpg?rev=981058)
 * [Post List Featured Image](https://wordpress.org/plugins/post-list-featured-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-list-featured-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-list-featured-image/)
 * [Active Topics](https://wordpress.org/support/plugin/post-list-featured-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-list-featured-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-list-featured-image/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [TatumCreative](https://wordpress.org/support/users/tatumcreative/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/init-hook-optimization/#post-5096402)
 * Status: resolved