Users can only save their draft once before saving for revision
Users can only save their draft once before saving for revision
Users can only save their draft once before saving for revision
Why does uploading a media file a second time restore older version?
By default WordPress can display changes in post content, by using the post revisions feature. WordPress can however not by default show any changes in post status (or publish date, or author, etc.). However there are plugins that can solve this. I built one myself called Simple History that displays more information about the changes … Read more
You can have some clue using the revision log. For more advanced logs, try using a plugin such Simple History
See this- function check_values( $post_ID, $post ) { $revisions = wp_get_post_revisions( $post_ID ); $revision_ids = []; foreach ( $revisions as $revision ) { $revision_ids[] = $revision->ID; } // $revision_ids; // holds all revision ids // $revision_ids[0]; // latest revision // $revision_ids[1]; //revision just before the latest one } add_action( ‘publish_post’, ‘check_values’, 10, 2 );
Still, I found it is good to update some more details on the excellent post. Save your custom fields: add_action( ‘_wp_put_post_revision’, ‘save_cmb2’ ); function save_cmb2( $post, true ) { // save the custom field } Note that the second parameter is true if you like autosave. File: wp-includes/revision.php 275: /** 276: * Inserts post data … Read more
No, there is not a way to disable customize_changeset posts from being created. These customize_changeset posts are created with the auto-draft status in the same way that a post gets created with the auto-draft status whenever you click on “Add New” in the admin. Note that because the auto-draft status is used, any such posts … Read more
How to edit posts/pages without making the change live?
is there a way to see all changes been done on a wordpress site?
Maybe you could try looking which functions are hooked to the save_post action and then see what those functions are doing. Perhaps there’s some kind of an infinite loop in one of them. Try looking into the global variable $wp_filter, more on that here, How to know what functions are hooked to an action/filter?