Title: undefined function is_admin()
Last modified: August 19, 2016

---

# undefined function is_admin()

 *  [lucaazori](https://wordpress.org/support/users/lucaazori/)
 * (@lucaazori)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/undefined-function-is_admin/)
 * Hi, i`m new with wordpress, in the installation, i have the following error:
   `
   Fatal error: Call to undefined function is_admin() in C:\wamp\www\wordpress\wp-
   admin\includes\comment.php on line 162` i realize that the function is_admin 
   does not exist in <strong>functions.php</strong> file, but how can i add this
   function ? what`s it`s code?? thx in advance 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Anonymous User
 * (@anonymized-3085)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/undefined-function-is_admin/#post-1888566)
 * is_admin is a default WordPress function – so it’s possible you may need to download
   WordPress again and overwrite the files.
 *  Thread Starter [lucaazori](https://wordpress.org/support/users/lucaazori/)
 * (@lucaazori)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/undefined-function-is_admin/#post-1888582)
 * thx, please how can i know the version of my wordpress to download it again, 
   or it does not matter ??
 *  Thread Starter [lucaazori](https://wordpress.org/support/users/lucaazori/)
 * (@lucaazori)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/undefined-function-is_admin/#post-1888592)
 * i would ask where should the source code of is_admin() function be ??
    also, 
   i have downloaded the version 3.0.4 and i didn`t find this function the overwrite
   it in mine 🙁 please help
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/undefined-function-is_admin/#post-1888598)
 * If this is a new install, simply re-upload a **fresh** copy of WordPress 3.0.4.
 *  Thread Starter [lucaazori](https://wordpress.org/support/users/lucaazori/)
 * (@lucaazori)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/undefined-function-is_admin/#post-1888605)
 * i check it, and i found the source code of the function:
    in /wp-admin/load-scripts.
   php -> line 68:
 *     ```
       function is_admin() {return true;}'
       in  /wp-admin/load-styles.php -> line 68:
       <code>function is_admin() {return true;}</code>
       and in  /wp-includes/load.php -> line 572:
       ```
   
 * function is_admin() {
    if ( defined( ‘WP_ADMIN’ ) ) return WP_ADMIN; return false;}`
   so!! it look strange to me that the function is UNDEFINED 🙁
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 3 months ago](https://wordpress.org/support/topic/undefined-function-is_admin/#post-1888655)
 * If it’s not defined on your install, then something’s wrong. Seriously. Redownload
   the whole wordpress install and copy it to your server. Something did not get
   uploaded correctly the first time.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘undefined function is_admin()’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [is_admin](https://wordpress.org/support/topic-tag/is_admin/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 4 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/undefined-function-is_admin/#post-1888655)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
