Support » Plugin: Social » Disable for custom post type

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, there is a filter on the list of post types that determined which post types Social is enabled for.

    Carsten Bach


    Wouldn’t it make more sense to just remove support for comments on this post_type.
    Since on of the last updates of social, it will recoginze this, I think.

    add_action( 'admin_init', 'cpt_support' );
    function cpt_support() {
            remove_post_type_support( 'YOUR-POST-TYPE-NAME', 'comments' );




    Where? I don’t see any checkboxes in the admin-area, so i assume it’s only by code, which i’d be totally fine with.

    But if this isn’t documented, it doesn’t help much …

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable for custom post type’ is closed to new replies.