Retrieves font uploads directory information.
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.
function wp_get_font_dir() {
return wp_font_dir( false );
}
| Version | Description |
|---|---|
| 6.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_font_dir