WordPress.org

Plugin Directory

One Click Close Comments

Conveniently close or open comments for a post or page with one click.

Filters

The plugin exposes one action for hooking.

c2c_one_click_close_comments_click_char (action)

The 'c2c_one_click_close_comments_click_char' hook allows you to use an alternative character or string as the plugin's indicator in the posts listing tables. It is the character that get color-coded to indicate if comments are open or close, and the thing to click to toggle the comment open status. By default this is a bullet, • (a solid circle).

Arguments:

  • $char (array): The character to be used for display (by default this is •).

Example:

/**
 * Changes the character used as the one-click link to a diamond.
 *
 * @param string $char The default character (a bullet)
 * @return string
 */
function custom_one_click_char( $char ) {
    return '♦';
}
add_filter( 'c2c_one_click_close_comments_click_char', 'custom_one_click_char' );

Requires: 2.8 or higher
Compatible up to: 4.1.5
Last Updated: 2015-3-13
Active Installs: 100,000+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
100,1,1 100,2,2
0,1,0
100,2,2
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1