• Resolved Roman Krokhmalyuk

    (@llgruff)


    Hi!
    Some WordPress starter themes (like sage) uses theme wrappers (more detail).
    Therefore, for the proper operation of your plugin, I propose to replace this:
    add_action('get_header', array( $this, 'maintenance' ));
    with this:
    add_action('template_redirect', array( $this, 'maintenance' ));

Viewing 1 replies (of 1 total)
  • Plugin Author Lukas Juhas

    (@lukasneptun)

    Hey!

    Thanks for your message and info, that’s very helpful. I think there were previously couple of posts regarding the hook. I will look into this and see what I can do, in case I can’t change the hook for some reason I might try to add the missing ones at the end. The main thing is to keep it as simple as possible as it is now.

    https://github.com/lukasjuhas/lj-maintenance-mode/issues/43

    Thank, I will move this over to the github so I / you can keep track of this there.

    Lukas

Viewing 1 replies (of 1 total)
  • The topic ‘Replase add_action get_header with template_redirect’ is closed to new replies.