Thanks to visit codestin.com
Credit goes to github.com

Skip to content

epurn/lr-update-wp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Site Publisher (Lightroom Classic plugin)

Minimal skeleton for a Lightroom Classic plugin that will eventually:

  • Link a collection to a WordPress object
  • Auto‑export newly added photos in linked collections
  • Upload exports to WordPress and attach to the linked object

Current functionality includes:

  • Verify Setup command and robust logging
  • Link/Unlink the active collection to a WordPress object (string ID)
  • Manage Linked Collections (edit/unlink), with uniqueness enforced across the catalog

Requirements

  • Windows 11
  • Lightroom Classic 14.4+
  • This repo checked out locally

Install

You can load the plugin directly from this repo folder.

Option A — Add via Plug‑in Manager (recommended):

  1. In Lightroom Classic: File → Plug‑in Manager… → Add
  2. Select site-publisher.lrplugin
  3. Ensure it loads without errors and is Enabled

Usage

  • Library → Plug‑in Extras → Verify Setup
  • Library → Plug‑in Extras → Link Current Collection…
    • Select exactly one regular collection in Library
    • Enter WordPress Base URL, Object Type, and Object ID (string)
    • On save, the link is persisted to the catalog
  • Library → Plug‑in Extras → Unlink Current Collection
  • Library → Plug‑in Extras → Manage Linked Collections…
    • View all linked collections
    • Edit a link (opens prefilled dialog) or Unlink

Logging

  • Plugin log file (custom): site-publisher.lrplugin\logs\site-publisher.log
  • Errors are handled and logged throughout the plugin (see .cursorrules)

Repo structure

  • site-publisher.lrplugin/Info.lua: plugin metadata and menu wiring
  • site-publisher.lrplugin/Init.lua: initialization and logger setup
  • site-publisher.lrplugin/Log.lua: shared logging helper
  • site-publisher.lrplugin/LinkedCollectionsCore.lua: pure logic (JSON helpers, uniqueness)
  • site-publisher.lrplugin/LinkedCollections.lua: catalog storage and helpers
  • site-publisher.lrplugin/commands/LinkCollection.lua: link UI/flow
  • site-publisher.lrplugin/commands/UnlinkCollection.lua: unlink flow
  • site-publisher.lrplugin/commands/ManageLinkedCollections.lua: manage UI/flow
  • site-publisher.lrplugin/VerifySetup.lua: simple verification command
  • .resources/: Lightroom SDK, API Reference, and manuals

Roadmap

  • Step 4: Authentication and WordPress HTTP (use LrPasswords for secure storage)
  • Auto‑export newly added photos in linked collections to a temp folder
  • Upload to WordPress and attach to the linked object

About

Push changes from Lightroom to Wordpress sites automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages