wp-includes/fonts.php:146Returns an array containing the current fonts upload directory's path and URL.
$create_dirbooloptionaltruearray$pathstring
$urlstring
$subdirstring
$baseurlstring
$errorstring|false
function wp_font_dir( $create_dir = true ) { /* * Allow extenders to manipulate the font directory consistently. * * Ensures the upload_dir filter is fired both when calling this function * directly and when the upload directory is filtered in the Font Face * REST API endpoint. */ add_filter( 'upload_dir', '_wp_filter_font_directory' ); $font_dir = wp_upload_dir( null, $create_dir, false ); remove_filter( 'upload_dir', '_wp_filter_font_directory' ); return $font_dir;}Introduced in 6.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/fonts.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.