WordPress как на ладони
wordpress jino
фильтр не описан

show_recent_comments_widget_style хук-фильтр . WP 3.1.0

Filters the Recent Comments default widget styles.

Использование

add_filter( 'show_recent_comments_widget_style', 'filter_function_name_7512', 10, 2 );
function filter_function_name_7512( $active, $id_base ){
	// filter...

	return $active;
}
$active(bool)
Whether the widget is active.
Default: true
$id_base(string)
The widget ID.

Связи хука

Используется в: WP_Widget_Recent_Comments::recent_comments_style()

Кусок кода с хуком

...
 	/**
	 * Outputs the default styles for the Recent Comments widget.
	 *
	 * @since 2.8.0
	 */
	public function recent_comments_style() {
		/**
		 * Filters the Recent Comments default widget styles.
		 *
		 * @since 3.1.0
		 *
		 * @param bool   $active  Whether the widget is active. Default true.
		 * @param string $id_base The widget ID.
		 */
		if ( ! current_theme_supports( 'widgets' ) // Temp hack #14876
			|| ! apply_filters( 'show_recent_comments_widget_style', true, $this->id_base ) )
			return;
		?>
		<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
		<?php
	}

	/**
	 * Outputs the content for the current Recent Comments widget instance.
	 *
	 * @since 2.8.0
	 *
	 * @param array $args     Display arguments including 'before_title', 'after_title',
	 *                        'before_widget', and 'after_widget'.
	 * @param array $instance Settings for the current Recent Comments widget instance.
	 */
...