Title: Redirect back into wordpress structure.
Last modified: August 20, 2016

---

# Redirect back into wordpress structure.

 *  Resolved [joemerchant2](https://wordpress.org/support/users/joemerchant2/)
 * (@joemerchant2)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/redirect-back-into-wordpress-structure/)
 * Coding a plugin.
    In one particular instance, I call a php script for processing
   information. One of the options based on the processed info is redirecting to
   a specific plugin screen.
 * I have this;
    $redirecturl = WP_PLUGIN_URL() . ‘php/manage_pas.php&careturn=1’;
   header(“Location: ” . $redirecturl);
 * The problem is that because the file isn’t a viewable page in the lug, it doesn’t
   have access to all the WP functions. While I do use “global wpdb” for the DB 
   functions, I don’t know of any way to pull in that WP_PLUGIN_URL function.

Viewing 1 replies (of 1 total)

 *  Thread Starter [joemerchant2](https://wordpress.org/support/users/joemerchant2/)
 * (@joemerchant2)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/redirect-back-into-wordpress-structure/#post-2299416)
 * Never mind….
 * dirname(__FILE__)

Viewing 1 replies (of 1 total)

The topic ‘Redirect back into wordpress structure.’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [joemerchant2](https://wordpress.org/support/users/joemerchant2/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/redirect-back-into-wordpress-structure/#post-2299416)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
