Disable Comments 2.1.0 has 0 actions and 7 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Change a value Disable Comments is about to use
add_filter( 'rb_disable_comments_delete_filters', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
apply_filters( 'rb_disable_comments_delete_filters', array( 'date_query' => array(), 'comment_type' => '' ) ); -
apply_filters( 'rb_disable_comments_disable_settings', $this->options, $args ); -
rb_disable_comments_enforced
filterapply_filters( 'rb_disable_comments_enforced', false ); -
apply_filters( 'rb_disable_comments_general_settings', $this->options ); -
apply_filters( 'rb_disable_comments_user_is_exempt', false ); -
apply_filters( 'rb_disable_comments_visibility_modes', array( 'all', 'none' ) ); -
apply_filters( 'rb_disable_comments_visible_comments', $comments, $visibility, $this->options );
Generated from Disable Comments's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: