• I have a custom post type named “einrichtung”
    What code I need to add, that the plugin works for this custom post type?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Brice Capobianco

    (@brikou)

    Please read the plugin documentation here: https://ww.wp.xz.cn/plugins/simple-revisions-delete/

    Paste this function in your functions.php file.

    
    function bweb_wpsrd_add_post_types( $postTypes ){
        $postTypes[] = 'einrichtung';
        return $postTypes;
    }
    add_filter( 'wpsrd_post_types_list', 'bweb_wpsrd_add_post_types' );

    Cheerse,

    Thread Starter Maik Hirsch

    (@maikh)

    Thanks for your fast answer,
    but it does not work, maybe I use he wrong name for the custom post type. Or the theme does not support this code…
    Have no solution 😉

    Plugin Author Brice Capobianco

    (@brikou)

    Hi,
    When you’re on the screen which list all your ‘einrichtung’ posts, you should see the post type name in the URL like the above example.

    /wp-admin/edit.php?post_type=einrichtung

    Best,

    Thread Starter Maik Hirsch

    (@maikh)

    Now it works, it is ‘dt_portfolio’…

    Thanks a lot

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Delete custom post type’ is closed to new replies.