akismet_show_user_comments_approved

akismet_show_user_comments_approved

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('akismet_show_user_comments_approved') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet-admin.php line 583
    			// Default to active if the user hasn't made a decision.
    			$show_user_comments_option = '1';
    		}
    
    		$show_user_comments = apply_filters( 'akismet_show_user_comments_approved', $show_user_comments_option );
    		$show_user_comments = $show_user_comments === 'false' ? false : $show_user_comments; //option used to be saved as 'false' / 'true'
    
    		if ( $show_user_comments ) {
    			$comment_count = Akismet::get_user_comments_approved( $comment->user_id, $comment->comment_author_email, $comment->comment_author, $comment->comment_author_url );
    			$comment_count = intval( $comment_count );
    			echo '<span class="akismet-user-comment-count" commentid="'.$comment->comment_ID.'" style="display:none;"><br><span class="akismet-user-comment-counts">'. sprintf( esc_html( _n( '%s approved', '%s approved', $comment_count , 'akismet') ), number_format_i18n( $comment_count ) ) . '</span></span>';