• Hi,

    I use this plugin on almost every single site i build, and love it for its easy of use. But now I had to use it on my first multisite, and found that it doesn’t disable comments on custom post types — in order to do that i have to activate it on a blog by blog basis.

    Would it be possible for the plugin to include custom post types when disabling comments network-wide?

    https://ww.wp.xz.cn/plugins/disable-comments/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Samir Shah

    (@solarissmoke)

    Sorry, you won’t be able to do this.

    On multisite installations it is possible for each site to have different custom post types running on it. It is not possible for the plugin to collect a list of all the post types in use on each site without “loading” each site in turn – you can imagine that this isn’t feasible for networks with a large number of sites.

    For cases like this you will need to activate the plugin on a per-site basis and configure from there.

    Thread Starter malibur

    (@malibur)

    ahh I see.. That makes a lot of sense.

    But how about just the post types that has been registered site wide then – like “posts” and “pages”? Is that possible? I don’t actually now if its possible to see if a post type has been registered site wide — I’m thinking no.

    Sorry – just thinking out loud.

    Keep up the good work!

    Plugin Contributor Samir Shah

    (@solarissmoke)

    No… post types are registered on a per-site basis, and it’s possible for sites to unregister the default (post/page) types as well – making it very tricky to apply site-wide post-type-specific rules.

    Thread Starter malibur

    (@malibur)

    Yeah okay.. I guess that allows for more granular control too.

    It would still be very useful to just disable comments from all post types on all sites no matter what. Even if it means forcing it. But I guess its just a setup thing.

    Thakns

    Plugin Contributor Samir Shah

    (@solarissmoke)

    It would still be very useful to just disable comments from all post types on all sites no matter what.

    You can do this. You need to network-activate the plugin, and then select the “disable everywhere” option. This will completely disable comments for all sites in the network. Individual sites cannot then override this behaviour.

    Thread Starter malibur

    (@malibur)

    That won’t disable the custom post types though. only the _builtin ones

    Plugin Contributor Samir Shah

    (@solarissmoke)

    No, it will disable on all post types. Try it.

    Plugin Contributor Samir Shah

    (@solarissmoke)

    To clarify with regard to the original question – the plugin will disable comments on all post types (including custom post types) if you use the “disable everywhere” option.

    However, if you select individual post types to disable, then it will only be able to disable comments on the built-in post types (for network activated mode) because it cannot see what post types are active on each individual site.

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

The topic ‘Multisite: disable comments in Custom post types’ is closed to new replies.