I am uploading image in Codeigniter and I need to upload same image in WordPress. So i treid following thing:

  1. After uploading i called a file which start from following code, but the vairable “site_url” created issue because both CI and WP are using this so got “variable redeclare issue”.
    define(‘WP_USE_THEMES’, false);
    require_once( ‘wp-config.php’ );

  2. I did another implementation, after uploding image I stored $_FILES in session and tried send image information using session which is not working.

Any one can suggest how i can complete this process.

Read more here: Codigniter and WordPress Bridge for image Upload


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: