Title: PHP Warning constant is_network_admin
Last modified: March 19, 2020

---

# PHP Warning constant is_network_admin

 *  Resolved [redcastor](https://wordpress.org/support/users/redcastor/)
 * (@redcastor)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-warning-constant-is_network_admin/)
 * Hello,
 * You check for a define but this is not a constant it is a function.
    easy-plugin-
   demo.php
 * line 269: if ( ! is_main_site() && ! is_network_admin ) {
    line 300: if ( ! is_main_site()&&!
   is_network_admin ) {
 *  Warning: Use of undefined constant is_network_admin – assumed ‘is_network_admin’(
   this will throw an Error in a future version of PHP)
 * Regards
 * Auban

Viewing 1 replies (of 1 total)

 *  Plugin Author [Michael](https://wordpress.org/support/users/mikeyhoward1977/)
 * (@mikeyhoward1977)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/php-warning-constant-is_network_admin/#post-13190163)
 * This has been resolved with version 1.2 released today

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning constant is_network_admin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-plugin-demo.svg)
 * [Easy Plugin Demo Builder](https://wordpress.org/plugins/easy-plugin-demo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-plugin-demo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-plugin-demo/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-plugin-demo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-plugin-demo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-plugin-demo/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/mikeyhoward1977/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/php-warning-constant-is_network_admin/#post-13190163)
 * Status: resolved