• Resolved Castor

    (@castoruk)


    Hi

    The DISALLOW_FILE_EDIT feature does not appear to be working on a number of our website.

    We have set the option to Yes, and yet are still able to see/edit the Theme and Plugin code.

    This has worked in the past so don’t know what’s changed.

    On WP 5.6 and latest version of NF.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Can you check your wp-config.php script if there’s a DISALLOW_FILE_EDIT constant defined? If you find one, delete it.

    Thread Starter Castor

    (@castoruk)

    Thanks for replying @nintechnet.

    I’ve checked the wp-config file and it does not contain DISALLOW_FILE_EDIT.

    It’s just occurred to me. We are using a htninja file to whitelist the IP we connect on (via a VPN), along with a few other IP ranges.

    Would this result in this behaviour?

    Plugin Author nintechnet

    (@nintechnet)

    Can you try to add this line to your wp-config.php:
    define( 'DISALLOW_FILE_EDIT', true );

    Does it disable the editor?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘DISALLOW_FILE_EDIT not working’ is closed to new replies.