Automattic\WooCommerce\Internal\ComingSoon

ComingSoonRequestHandler::first_font_family │ private │ WC 1.0

Gets the primary font family without optional surrounding quotes.

Method of the class: ComingSoonRequestHandler{}

No Hooks.

Returns

string. Primary font family.

Usage

// private - for code of main (parent) class only
$result = $this->first_font_family( $font_family ): string;
$font_family(string) (required)
CSS font family list.

ComingSoonRequestHandler::first_font_family() code WC 11.3.0

private function first_font_family( string $font_family ): string {
	return trim( trim( explode( ',', $font_family, 2 )[0] ), '"\'' );
}