Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WC_Comments::is_default_comment_type( string $comment_type )

Determines if a comment is of the default type.


Description Description

Prior to WordPress 5.5, ” was the default comment type. As of 5.5, the default type is ‘comment’.


Parameters Parameters

$comment_type

(Required) Comment type.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-comments.php

	private static function is_default_comment_type( $comment_type ) {
		return ( '' === $comment_type || 'comment' === $comment_type );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.