Restrict access to the WPO365 configuration pages

Usage You can restrict the administrators that are allowed to view the plugin's configuration pages by adding the WordPress usernames of those administrators that are allowed to view those pages to a global constant in your WP-Config.php (see this article for guidance on editing WP-Config.php). 

The global constant should be configured as an simple array of strings as - for example - shown below. 

define('WPO_ADMINS', array( 'johndemo', 'jackblack@domain.com')); 

Please note The following conventions must be followed when creating a new global constant with administrators.

  • The name of the global constant should be "WPO_ADMINS".
  • The usernames are WordPress usernames (not Azure AD user principal names).
  • There is not support for WordPress Multisite and this configuration affects all subsites in a multisite installation.

Default value Not present.

Versions ALL

Visit the website https://www.wpo365.com/

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us