• Resolved Anonymous User 17836910

    (@anonymized-17836910)


    Hello.

    I disabled the autoredirects in wp-admin to prevent the access to the login url, however, this doesn’t apply just to the file “/wp-admin/customize.php”

    This is the code I used:

    function remove_default_redirect()
    {
        remove_action('template_redirect', 'wp_redirect_admin_locations', 1000);
    }

    Thanks for your time.

    I don’t know how to disable this redirect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @diego92v Are you actually calling the remove_default_redirect function in your theme? It looks like it’s just being declared.

    Thread Starter Anonymous User 17836910

    (@anonymized-17836910)

    @andrewmrobbins Yes, I forgot to add that part of the code.

    Anyway, I was able to solve this problem blocking the access to “customize.php” file via .htaccess.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable auto redirect in “customize.php”’ is closed to new replies.