• Resolved dworkoipnet

    (@dworkoipnet)


    Hello, would it be possible to create/provide a PHP snippet to duplicate a CPT on the frontend? E.g. function asenha_duplicate_frontend ($post_id, $status = draft) { … }. I display a list of an author’s posts (Metabox CPT) and want to give them a “duplicate” function from this list. It would add “Duplicate” to the post title just as your backend function does, but allow post status to be set to publish. The snippet would have to check that the current logged in user is the author of the post, otherwise it would either return an error code or do nothing. Thanks for considering this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bowo

    (@qriouslad)

    @dworkoipnet Why would you want your author to duplicate and then edit on the frontend instead of the backend wp-admin? This seems like a highly uncommon scenario which is probably not in the scope of this plugin.

    Thread Starter dworkoipnet

    (@dworkoipnet)

    I have a site where users (subscribers) can create and edit their own content. One of the features I need to add is the ability for them to duplicate existing content as a shortcut to adding content. They do their editing on the frontend, and the backend is disabled for them.

    Plugin Author Bowo

    (@qriouslad)

    @dworkoipnet I see. Is that frontend custom built?… or using a plugin? If the later, what is it and have you asked the plugin developer for that feature?… in either case, it seems like the use case is rather edgy… not something a lot of sites use, so, probably beyond the scope of Admin and Site Enhancements for now.

    Plugin Author Bowo

    (@qriouslad)

    p.s. closing this thread as no further reply was given after a while.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feature Request: Frontend CPT duplication’ is closed to new replies.