WordPress

Begin with REST API – Display others blogs latest posts

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.

WordPress plugin update from a custom server

Previous Next Post Navigation for Multiple Post Types at once

How to Combine AJAX load more button with AJAX filters

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.

add images to WordPress media library programatically
It is easier to organize your uploaded images using WordPress Media Library. Photos by me.

In this tutorial we are going to take a look on two scenarios:

  1. When upload images from url (not only images of course),
  2. When upload files using a form.

Add ID and Parent Comment ID Columns to the Comments Table in /wp-admin

How to use Select2 for your Meta Boxes. Creating AJAX-based Posts Dropdown with Search.