wp_font_dir
wp_font_dir ( $create_dir = true )
Parameters:- (bool) create_dir Optional. Whether to check and create the font uploads directory. Default true.
Returns:- (array) { Array of information about the font upload directory. @type string $path Base directory and subdirectory or full path to the fonts upload directory. @type string $url Base URL and subdirectory or absolute URL to the fonts upload directory. @type string $subdir Subdirectory @type string $basedir Path without subdir. @type string $baseurl URL path without subdir. @type string|false $error False or error message. }
Defined at: - Introduced in WordPress: 6.5.0
- Deprecated in WordPress: —
Description
Returns an array containing the current fonts upload directory's path and URL.