Getting started

Integration & migration

Image & video API

DAM user guide

API overview


ImageKit WordPress Plugin

How does WordPress Plugin works

WordPress is the most widely used platform to build websites across the globe. From small blogs to full-fledged eCommerce websites, WordPress provides the flexibility to build different kinds of websites with minimal technical effort.

You can easily integrate into your WordPress website using our official WordPress plugin.

Plugin capabilities

Feature Available
Serve images in next-gen formats
(automatic image format conversion)
All new and old images in existing posts are automatically delivered in the right image format, including WebP, using
Automatic image optimization
(metadata removal and quality optimization)
All new and old images in existing posts are automatically optimized during delivery using Original images are not modified.
Automatic image resizing
(Resizing image as per layout)
WordPress 4.4 has added native support for responsive images. Learn more to make your theme's image responsive.
Lazy loading imagesNo
You can use a plugin like a3 Lazy Load to lazy-load images.

Integration steps

Here is what you need to do:

Step 1: Configure origin in dashboard

Configure origin based on where your images are stored. For example, Amazon S3 bucket origin or web server.

Step 2: Fetch image through endpoint

Let's quickly fetch the image using URL endpoint and see if it's working.

When you add the first origin in your account, it automatically becomes accessible through the default URL endpoint, that is Otherwise, you will have to configure an existing URL endpoint or create a new one to fetch images from this newly added origin.

If your old image URL was, then the same image should be accessible through URL-endpoint, i.e.,

Step 3: Install and configure plugin in WordPress

  1. Install and activate WordPress plugin.
  2. Go to setting.
  3. Fill the ImageKit URL endpoint (or CNAME) with your_imagekit_url_endpoint. Copy and paste from the dashboard.
  4. Click the "Save changes" button.
  5. Flush cache, if any.

Now all the image files under theme directory on your WordPress site (with extensions matching one of gif, png, jpg, jpeg, bmp, ico, webp) will be loaded via

Using to deliver non-image static assets like JS or CSS

By default, plugin is configured to load only image files through URL endpoint, but you can override this setting by changing the value in File types field.

Enter the semicolon-separated list to allow JS and CSS files as well, for example - *.js;*.css;*.gif;*.png;*.jpg;*.jpeg;*.bmp;*.ico;*.webp

Loading files from custom directories outside theme folder

By default, the WordPress plugin loads files from the theme folder. But you can override this setting by adding new paths in Custom files field. All the values in this field are separated by a new line. Wildcard (*) is allowed.

Restrict loading specific files through

There could be a case where you don't want the files on a specific path or pattern to be loaded via This can be done by setting the right values in Rejected files field. All the values in this field are separated by a new line. Wildcard (*) is allowed.

For example, we want to avoid loading captcha assets through, so we can enter wp-content/uploads/wpcf7_captcha/* under rejected files, as shown in the screenshot above.