WP Manifestindependent plugin directory
manifest / developer / classifai-local-media-http

ClassifAI - Local Media over HTTP

Serve attachment URLs over http on .local sites to avoid self-signed certificate issues that break image processing (for example when ClassifAI reads media via URL).

★ 0stars
0.1.0latest · 1 year ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/jeffpaul/classifai-local-media-http/archive/refs/heads/develop.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Serve attachment URLs over http on .local sites to avoid self-signed certificate issues that break image processing (for example when ClassifAI reads media via URL).

Description

On local development environments that use a self-signed certificate, PHP may fail to fetch media over https with errors like:

  • SSL routines:tls_process_server_certificate:certificate verify failed

This plugin forces media URLs to use http when your site's host ends with .local or equals localhost. It targets:

  • wp_get_attachment_url()
  • wp_get_attachment_image_src()
  • wp_calculate_image_srcset()
  • Uploads base URL from wp_upload_dir()

It is safe to remove in production.

Installation

  1. Upload the ZIP in Plugins → Add New → Upload Plugin.
  2. Activate the plugin.
  3. Go to your media workflow and try again.

Filters

  • clmh_is_local( $is_local, $host ) — return true to enable forcing http even if your domain does not end with .local.

Changelog

0.1.0

  • First release.

Releases

1 release.

Tag
Published
0.1.0 latest
Aug 20, 2025 1 year ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.