Automattic\WooCommerce\Internal\ComingSoon

ComingSoonRequestHandler::is_same_font_family │ private │ WC 1.0

Checks whether two CSS font family lists start with the same font family.

Method of the class: ComingSoonRequestHandler{}

No Hooks.

Returns

bool. Whether the primary font families match, ignoring case and quotes.

Usage

// private - for code of main (parent) class only
$result = $this->is_same_font_family( $font_family, $other_font_family ): bool;
$font_family(string) (required)
CSS font family list.
$other_font_family(string) (required)
CSS font family list to compare with.

ComingSoonRequestHandler::is_same_font_family() code WC 11.3.0

private function is_same_font_family( string $font_family, string $other_font_family ): bool {
	return 0 === strcasecmp( $this->first_font_family( $font_family ), $this->first_font_family( $other_font_family ) );
}