SECUPRESS_MODE

This is an available PHP constant for advanced users who which to set some "modes" in SecuPress.

You can already find these settings in the Dashboard module, we're talking about the 4 advanced settings: Admin Bar Menu, Show Contextual Help & Tips, Grade System, Expert Mode.

"Admin Bar Menu" and "Show Contextual Help & Tips" are a per user settings, each user can set it's own choices.

"Grade System" and "Expert Mode" are global settings, once set, it's like any other setting, it's per site.

Still, you may need to set any of these 4 settings on OFF (and ON for Expert) for everyone and not let them change it.

Because, some users are afraid of the Grade System if they don't get the A+ one for example.

So, to do that you can set a PHP constant named SECUPRESS_MODE and for the value, do this :

  • To deactivate the "Admin Bar Menu" for everyone, add the word "adminbar".
  • To deactivate the "Show Contextual Help & Tips" for everyone, add the word "help".
  • To deactivate the "Grade System" for everyone, add the word "grade".
  • To activate the "Expert Mode" for everyone, add the word "expert".

Example:

define( 'SECUPRESS_MODE', 'help expert grade adminbar' );

Will do all, the order is not important.