Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

revisions

How to get post revisions in my custom rest API?

August 6, 2022 by Magenaut

I want to fetch all post revisions for my posts. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back … Read more

Categories Q&A, Wordpress Tags functions, rest-api, revisions Leave a comment

Display post changelog in post

August 5, 2022 by Magenaut

I need to show history of post changes (post revisions) at the end of post content.

Categories Q&A, Wordpress Tags posts, revisions Leave a comment

How can I change the date format of the revision list?

August 5, 2022 by Magenaut

The date format looks like this “$ datef = _x ('F j, Y @ H: i: s', 'revision date format');” but I want it to be like this “$ datef = _x ('Y-m-d @ H: i: s', 'revision date format');“. I don’t want to modify the core of wordpress, is there a way to do it with a hook?

Categories Q&A, Wordpress Tags date, formatting, hooks, posts, revisions Leave a comment

Delete post revisions only for a single post

August 5, 2022 by Magenaut

How to delete post revisions only for a specific post identified by its ID using an SQL query?

Categories Q&A, Wordpress Tags database, posts, query, revisions Leave a comment

How to list the authors of all revisions?

August 5, 2022 by Magenaut

Some wordpress post has many revisions, and I know how to list all revisions,use code:wp_list_post_revisions( int|WP_Post $post_id, string $type = 'all' )。

Categories Q&A, Wordpress Tags author, revisions Leave a comment

How can I purge all post revisions except the latest 5?

August 4, 2022 by Magenaut

I know I can use define('WP_POST_REVISIONS', 5); to limit future post revisions to 5, but how would I go about purging all existing revisions except the latest 5?

Categories Q&A, Wordpress Tags revisions Leave a comment

Will revisions be retained when converting to a multi-site?

August 5, 2022August 4, 2022 by Magenaut

Will revisions be retained when converting to a multi-site?

Categories Q&A, Wordpress Tags multisite, revisions Leave a comment

Enable revisions for custom post type

August 2, 2022August 1, 2022 by Magenaut

I have created a custom Post Type, and Registered it.

Categories Q&A, Wordpress Tags custom-post-types, revisions Leave a comment

How to delete post revisions?

August 1, 2022July 31, 2022 by Magenaut

I haven’t set a limit to the number of revisions, which makes some of my post have more than 20 revisions, so how to delete these revisions?

Categories Q&A, Wordpress Tags customization, multisite, revisions Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress