Rewrite & Republish Function
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 53
- Forks
- 38
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
Hi,
I have been trying to find a way to create a draft post using the rewrite and republish feature programmatically but I am struggling to find one.
Looking at the developer docs on your site, there are certain functions available for developers, such as duplicate_post_create_duplicate() but I can’t see anything for duplicate_post_for_rewrite_and_republish(). Is this possible or can someone help me to get this working?
It is almost essential functionality that I would need for an upcoming build and can’t see any other way to do this.
Any help would be greatly appreciated, and thank you in advance.
Is your feature request related to a problem? Please describe.
Currently AFAIK there is no way to replicate the rewrite & republish functionality from within the admin dashboard using a function or code.
Describe the solution you'd like
A function available to replicate the rewrite and republish functionality in the admin dashboard.
Why do you think this feature is something we should consider for the Yoast SEO plugins?
Yoast is already very developer friendly offering hooks, filters, REST API docs and I think this feature is very much needed for working with posts programmatically.
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 with the developer documentation and the existing duplicate_post_create_duplicate() function, then trace how the admin rewrite and republish action works. Done means a documented callable function can reproduce that workflow programmatically for creating a draft post.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100