WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. petrich
    Member
    Posted 1 year 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 ?

    Thanks,

    Petrich

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Thanks a lot !
    Easily done !

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

  4. petrich
    Member
    Posted 1 year 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

About this Topic