[Defender Pro] Defender Pro masking logins issue

What can I do if we have lost the masked login URL for one of our websites? I wish your quick button to log into wp-admin would log in to the masked URL. Thanks

  • Ash
    • WordPress Hacker

    Hello Core Zero

    Please add the following code on your theme’s functions.php:

    add_filter( 'wpd_masklogin_disabled', '__return_true' );

    That will disable masked login. So, you will be able to login using /wp-admin/ or /wp-login.php url. Once you are logged in, remove the code and go to defender settings to check the mased login slug.

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!



  • Adam Czajczyk
    • Support Gorilla

    Hello Core Zero

    The solution provided by Ash above would let you login without knowing the masked URL. Here’s the “step by step” guide to proceed without knowing the masked URL:

    1) access the WordPress install via FTP or cPanel’s File Manager

    2) go to /wp-content/themes/Divi/ folder

    3) edit the “functions.php” file and at the end of it add following code

    add_filter( 'wpd_masklogin_disabled', '__return_true' );

    4) now go to “yoursite.com/wp-login.php” page (replace “yoursite.com” with your real domain – basically go to the standard WP login page, like the masking was never enabled there) and you should see the standard login form

    5) login to the site using your regular admin login and password

    6) remove the code from “functions.php” and go to Defender settings to check your masked login URL;

    Next logins (after removing the code from fuctions.php file) would again be via the masked login URL but for this one time you’ll be able to login via the standard login URL.

    There’s also another way to deal with it, if you’re familiar with phpMyAdmin usage. Instead of adding/removing the code, you would want to

    – open the site’s database in phpMyAdmin (which you should have access to from cPanel/server management panel)

    – go to “wp_options” table (note: prefix might be different depending on your site’s setting but it’ll still contain _options part in the name)

    – look for the “option_name” of “wd_masking_login_settings” and you should see string similar to this there


    In this case the “mylogin” is masked login so the URL would be like “yoursite.com/mylogin”

    Best regards,


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.