WordPress.org

Ready to get started?Download WordPress

Forums

Social
[resolved] Disable for custom post type (4 posts)

  1. Everice
    Member
    Posted 1 year ago #

    Thank you for this amazing plugin! It's helping me to loose less of time.

    But I have some custom types in my WP and I need to disable the Social plugin on these Post Types.

    How can I disable it?
    Can I remove filter? Or action? (Which one?)

    Tank you!

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

  2. Alex King
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, there is a filter on the list of post types that determined which post types Social is enabled for.

  3. Carsten Bach
    Member
    Posted 1 year ago #

    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' );
    }
  4. michapixel
    Member
    Posted 1 year ago #

    @Alex:

    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 ...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags