Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: save a post as a revision only when I want to?

Discussion in 'Misc WordPress Requests' started by formless, Jan 17, 2018.

  1. formless

    Guest

    Reply To: save a post as a revision only when I want to?, by formless

    Thank you for an information @sterndata

    The plugin looks interesting to me too.
    The revisionized post made by the plugin is in “draft” post_status,
    so seemingly I will be able to use it together with my plugin which I am planing.

    So far, I’ve found a function “wp_save_post_revision” hooked in “pre_post_update”.
    Maybe, this will work?

    1. Add “save as revision” button in post.php screen.
    – on_click on it, submit with a hidden param “save_as_revision=1”
    2. in “pre_post_update” hook with priority as 9, check the param above
    – if the param doesn’t exists, then remove_action “wp_save_post_revision” from hook “pre_post_update”.

    Anyway, I’ll try it!

    Reply To: save a post as a revision only when I want to?
     
    #1

Share This Page

Monarch Social Sharing Plugin