• Resolved manojmohandev

    (@manojmohandev)


    I am facing an issue with init action handler in login page. init action handler is not called on using this plugin. Found this old thread, https://www.ads-software.com/support/topic/init-action-handler-priority/ with similar issue and by adding define(‘CERBER_OLD_LP’,10); in wp-config.php resolves the issue. But I want to know the reason behind handler getting blocked and what does this variable does which resolves it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter manojmohandev

    (@manojmohandev)

    I also found out on enabling “Defer rendering the custom login page” solves the problem. The issue happens when you are having custom login page and if you are not deferring the render of the login page, no function hooked in init action will work.

    Plugin Author gioni

    (@gioni)

    Using “Defer rendering the custom login page” allows all the plugins and themes to be loaded before the actual WordPress login page is sent to the user’s browser. In most cases, it’s a waste of server resources. Enabling this option enables using the init hook on the login page as well.

    On the standard WordPress login page, there are toons of other hooks a skilled developer has to use: login_init, login_enqueue_scripts, login_head, login_footer, login_form_login, login_form_register, and so on. It is wrong to use the generic init hook for modifying the standard WordPress login page.

    P.S. CERBER_OLD_LP is obsolete.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Cerber blocking init action handler for login, register page’ is closed to new replies.