Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite & Republish Function #345

Open
phil-sola opened this issue Nov 28, 2023 · 1 comment
Open

Rewrite & Republish Function #345

phil-sola opened this issue Nov 28, 2023 · 1 comment

Comments

@phil-sola
Copy link

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.

@altstack
Copy link

I was just researching this question and came across phil-sola's post.

I think the duplicate-post plugin's Rewrite & Republish'' is a very useful and wonderful feature. I wanted to incorporate this into a template so that a specific logged-in user can perform Rewrite & Republish'' from a public page.
If this were possible, I think it would be possible to easily implement a function that allows users to submit editing suggestions for updating information or correcting typographical errors in publicly available documents....

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

No branches or pull requests

2 participants