Title: Retrieve admin.php Path, Not URL
Last modified: August 20, 2016

---

# Retrieve admin.php Path, Not URL

 *  [umchal](https://wordpress.org/support/users/umchal/)
 * (@umchal)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/retrieve-adminphp-path-not-url/)
 * Hi,
 * I’m in the middle of writing a plugin that needs to inlude admin.php. How can
   I retrieve the path for admin.php in the wp-admin directory? I mean not url but
   the installed directory path. I searched the forum and only could find the function,
   admin_url() [http://codex.wordpress.org/Function_Reference/admin_url](http://codex.wordpress.org/Function_Reference/admin_url).
 * But this is not what I’m looking for since some users might be changing the file
   location for security and using redirects.
 * Thanks for your information.

The topic ‘Retrieve admin.php Path, Not URL’ is closed to new replies.

## Tags

 * [admin.php](https://wordpress.org/support/topic-tag/admin-php/)
 * [constants](https://wordpress.org/support/topic-tag/constants/)
 * [path](https://wordpress.org/support/topic-tag/path/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [umchal](https://wordpress.org/support/users/umchal/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/retrieve-adminphp-path-not-url/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
