Organising the plugins folder in wordpress

WordPress has quite narrow expectation for plugin directory structure. It is tightly coupled with loading process and API functions. While I know attempts have been made to make it more flexible, I am not aware of any real breakthroughs or mainstream adoption. As of current state of core I would estimate you would waste more … Read more

Admin page: form with enctype=”multipart/form-data” does not transfer its data

If you want to upload in a custom folder you can use the following function. Add the function in functions.php function upload_user_file( $file = array(),$path ) { if(!empty($file)) { $upload_dir=$path; $uploaded=move_uploaded_file($file[‘tmp_name’], $upload_dir.$file[‘name’]); if($uploaded) { echo “uploaded successfully “; }else { echo “some error in upload ” ;print_r($file[‘error’]); } } } Make a form in your … Read more