Filter hook 'font_dir'

in WP Core File wp-includes/fonts.php at line 189

Description

Filters the fonts directory data. This filter allows developers to modify the fonts directory data. }

Occurrences

Filename Line Number
wp-includes/fonts.php 189

Parameters

Type Name Description
array $font_dir { Array of information about the font upload directory.

PHP Doc

/**
	 * Filters the fonts directory data.
	 *
	 * This filter allows developers to modify the fonts directory data.
	 *
	 * @since 6.5.0
	 *
	 * @param array $font_dir {
	 *     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.
	 * }
	 */