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!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Init hook optimization’ is closed to new replies.