Jetpack by WordPress.com
[resolved] How to delete / clear custom-css history ? (4 posts)

  1. petrich
    Posted 3 years ago #

    Hello everyone

    Can you please explain how I can delete / clean custom-css numerous pages thar are created at every css modification saved through the custom-css module ?




  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    You'll have to access your database to delete these Custom CSS revisions: your CSS changes are stored in the _posts table, along your Posts, Pages, and other Custom Post Types.

    Custom CSS revisions use the safecss post_type, so you should be able to find them by filtering all posts with this Post type.

  3. petrich
    Posted 3 years ago #

    Thanks a lot !
    Easily done !

    Actually, you have to filter on the Post_title instead of Post_type...

  4. petrich
    Posted 3 years ago #

    ... because if you filter on Post_type = 'safecss', you will get only the first css custom post because any further custom css is in fact a Post_type = 'revision' and not 'safecss'...

    By filtering with Post_title = 'safecss', you'll get every custom css posts !

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic