Filter to change Rewrite & Republish Options
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 53
- Forks
- 38
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
For Duplicate Post to be compatible with Polylang the taxonomy post_translations needs to be excluded from the rewrite and republish feature. Polylang has already done this for the duplicate post feature.
The filter duplicate_post_taxonomies_excludelist_filter does not work on the rewrite & republish feature due to use_filters being set to false.
https://github.com/Yoast/duplicate-post/blob/110537f13f9937da0c2adcfe012f9dd1d5b271f7/src/post-duplicator.php#L160
Due to there not being a filter available I have created a patch for myself: https://github.com/wearerequired/duplicate-post/commit/0869c1d1b825f78e6466fed4cad2cf1883e6d064
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/post-duplicator.php at the linked code around line 160, where use_filters is set to false, and compare the existing duplicate-post filter with the Polylang integration and referenced patch. Done means the post_translations taxonomy can be excluded from Rewrite & Republish through an available filter.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100