Skip to content

Add filters for article URLs and authors in e-reader exports - #46

Merged
akirk merged 1 commit into
mainfrom
filter-article-url-and-author
Oct 20, 2026
Merged

akirk merged 1 commit into
mainfrom
filter-article-url-and-author

Conversation

@akirk

@akirk akirk commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

EPUB chapter links and the password-protected list overview use local WordPress permalinks, and chapter authors cannot be supplied independently of Friends. Add send_to_e_reader_post_url and send_to_e_reader_post_author_name filters so integrations can supply original article URLs and bylines. The URL filter applies to both chapter footers and the overview link target and text.

Post Collection supplies its stored source URLs and author overrides in the companion branch, keeping collection-specific logic in that plugin. Existing defaults remain in effect without a filter.

  • PHPUnit: 62 tests, 200 assertions passed.
  • composer check-cs passed.
  • Verified the Automattic article URL and Alexander Aidun byline using wp --url=alex.kirk.at.

WordPress Playground

Test this PR in WordPress Playground: Try this PR · Try with demo data

@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@akirk
akirk merged commit 35cd1f5 into main Oct 20, 2026
6 checks passed
@akirk
akirk deleted the filter-article-url-and-author branch October 20, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant