Title: HOW to get php full-url under theme using javascript
Last modified: August 20, 2016

---

# HOW to get php full-url under theme using javascript

 *  [sam4ever](https://wordpress.org/support/users/sam4ever/)
 * (@sam4ever)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/how-to-get-php-full-url-under-theme-using-javascript/)
 * Hi,I am making a ajax thing and need to load a php using javascript,
    I don’t
   know how to get the php url without hard-code like domain/wp-includes/blah/blah.
   Is there a good way?

The topic ‘HOW to get php full-url under theme using javascript’ is closed to new
replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [sam4ever](https://wordpress.org/support/users/sam4ever/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/how-to-get-php-full-url-under-theme-using-javascript/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
