post visibility history

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

revision id is one number behind – publish_post

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 );

Clean up customize_changeset in DB

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)