Viewing 5 replies - 1 through 5 (of 5 total)
  • @macnux Could you please let us know what exactly you are trying to achieve here, so we can check with our development team if there’s hook filter that can do so?

    Thread Starter macnux

    (@macnux)

    I want to run a custom code (unlock read-only mode to enable file writing) before the preloader runs and creates its files.
    I want to know the hook name that I can bind with.

    Regards,

    • This reply was modified 2 years, 10 months ago by macnux.
    • This reply was modified 2 years, 10 months ago by macnux.

    @macnux If you are running scheduled preloader then you can use this hook wpo_page_cache_schedule_preload to run your code

    • This reply was modified 2 years, 9 months ago by Harshad.
    Thread Starter macnux

    (@macnux)

    @bornforphp I tested the hook you mentioned wpo_page_cache_schedule_preload
    It runs after the cache is preloaded.
    I want to run my code before the cache preload starts not after.

    Regards,

    @macnux At the moment there’s no hook for before preload, we going to add a hook called wpo_before_cache_preload which may be available in the future version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can I run custom code before preloader runs’ is closed to new replies.