Title: Boot sequence
Last modified: January 6, 2022

---

# Boot sequence

 *  Resolved [olehz](https://wordpress.org/support/users/olehz/)
 * (@olehz)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/boot-sequence/)
 * You have recently changed the event for which you load the logic.
 *     ```
       add_action('plugins_loaded', [$ip2location_redirection, 'redirect']);
       //add_action('wp', [$ip2location_redirection, 'redirect']);
       ```
   
 * Сan you move the event to the settings? Or let it be done with a hook / filter?
   
   It would be very convenient and add flexibility. Or give access to the repo –
   I’ll do it myself, and you just have to confirm 🙂

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

 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/boot-sequence/#post-15226525)
 * Any reason you want to change this?
 *  Thread Starter [olehz](https://wordpress.org/support/users/olehz/)
 * (@olehz)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/boot-sequence/#post-15227769)
 * I use two redirectors for a multisite – one by location, the other is internal,
   the first one should work with yours, the second – the other, before yours worked
   on the wp event – first, and the other – on the plugins_loaded event. Now both
   are on plugins_loaded – and problems are possible.
    If you make the event customizable–
   this will give a huge advantage and the possibility of various combinations.
 *  [aterchin](https://wordpress.org/support/users/aterchin/)
 * (@aterchin)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/boot-sequence/#post-15289655)
 * I agree with changing it back to ‘wp’ or being able to customize the event. If
   you ever apply filters to the redirect() method, for example, theme developers
   can add their own rules without creating a plugin for that method.
 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/boot-sequence/#post-15290554)
 * Let me review again as the current event has a higher priority to load before
   some cache plugins.
 *  Thread Starter [olehz](https://wordpress.org/support/users/olehz/)
 * (@olehz)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/boot-sequence/#post-15369291)
 * Any news on our issue?
 *  Plugin Author [IP2Location](https://wordpress.org/support/users/ip2location/)
 * (@ip2location)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/boot-sequence/#post-15369614)
 * I will add this back in the next release.

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

The topic ‘Boot sequence’ is closed to new replies.

 * ![](https://ps.w.org/ip2location-redirection/assets/icon-128x128.png?rev=2121920)
 * [IP2Location Redirection](https://wordpress.org/plugins/ip2location-redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ip2location-redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ip2location-redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/ip2location-redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ip2location-redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ip2location-redirection/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [IP2Location](https://wordpress.org/support/users/ip2location/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/boot-sequence/#post-15369614)
 * Status: resolved