WordPress at Your Fingertips
function is not described

WC_Comments::is_default_comment_type() private WC 4.3.0

Determines if a comment is of the default type.

Prior to WordPress 5.5, '' was the default comment type. As of 5.5, the default type is 'comment'.

{} It's a method of the class: WC_Comments{}

No Hooks.

Return

true|false.

Usage

$result = WC_Comments::is_default_comment_type( $comment_type );
$comment_type(string) (required)
Comment type.

Changelog

Since 4.3.0 Introduced.

Code of WC_Comments::is_default_comment_type() WC 5.6.0

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