wp_get_font_dir(): array

Retrieves font uploads directory information.

Description

Same as wp_font_dir() but "light weight" as it doesn’t attempt to create the font uploads directory.
Intended for use in themes, when only ‘basedir’ and ‘baseurl’ are needed, generally in all cases when not uploading files.

See also

Return

array See wp_font_dir() for description.

Source

function wp_get_font_dir() {
	return wp_font_dir( false );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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