Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer

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 at 18:19

Your Answer

 
discard

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.