Directory

font_dir – Hook | Developer.WordPress.org

apply_filters( ‘font_dir’, array $font_dir )

In this article

Filters the fonts directory data.

Description

This filter allows developers to modify the fonts directory data.

Parameters

$font_dirarray
Array of information about the font upload directory.
  • path string
    Base directory and subdirectory or full path to the fonts upload directory.
  • url string
    Base URL and subdirectory or absolute URL to the fonts upload directory.
  • subdir string
    Subdirectory
  • basedir string
    Path without subdir.
  • baseurl string
    URL path without subdir.
  • error string|false
    False or error message.

Source

return apply_filters( 'font_dir', $font_dir );

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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