WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The Plugin save the Images to /PLUGINNAME/images but i want that it moves to /uploads

The Code inside the Plugin is this here

define('WPR_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
$wpr_saveurl = WPR_URLPATH . "images";
$wpr_cache = ABSPATH . "wp-content/plugins/". plugin_basename( dirname(__FILE__) )."/images";

How can I define to save the Images there?

share|improve this question
up vote 0 down vote accepted

What is "the plugin"?

Anyhow , you need to change WP_PLUGIN_URL to wp_upload_dir in your define.

You can read more here: http://codex.wordpress.org/Function_Reference/wp_upload_dir

share|improve this answer
Thank you very much. Solved it by the Link – user2036282 Feb 5 '13 at 18:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.