How to Configure Self-Hosted Updates for Your Private Plugins
In this tutorial I will show you how to develop a custom update repository for your private plugin. It will be helpful if you’re developing plugins for sale.
We are not going to use any ready or bloated PHP-libraries for that, only two filter hooks plugins_api
and site_transient_update_plugins
and transient cache, that’s all.
You can also download the full code as a ready plugin from my GitHub.

Upload Files to Media Library Programmatically
When you upload files to your website using media uploader in admin area, WordPress usually handles everything for you. So all the uploaded files automatically appear in WordPress media library and after that can be easily managed, inserted to posts etc.
But when you create some custom functionality, or maybe forms on your website front-end, you should handle it by yourself. And in this tutorial I will show you how.

In this tutorial we are going to take a look on two scenarios:
- When upload images from url (not only images of course),
- When upload files using a form.