| 开发者 | wordpress-parsi |
|---|---|
| 更新时间 | 2026年10月12日 07:29 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
font-display: swap by default, preconnect only when a CDN font is used.Elementor already ships many Google Fonts (including Vazirmatn, Lalezar and Markazi Text). A CDN copy would only duplicate it, so the plugin leaves Elementor's own entry in place and Elementor loads it. If you host the font on your server or upload it, the plugin takes over that entry so Elementor stops requesting it from Google.
No global CSS is added. Each page gets at most one small inline style block with the @font-face rules it needs, plus a CDN stylesheet only if a CDN font is used on that page.
WOFF2. It is the smallest format and supported by all current browsers.
Yes. Under Settings → WordPress admin, choose any enabled font from your library. It is applied to the dashboard screens and the admin toolbar. Icons, code fields and the content you edit keep their own fonts. The login page, the Customizer and the toolbar on the front end are not changed. If the font loads from a CDN it is requested on every admin screen, so hosting it on your server is the better choice.
Both already include a custom font upload of their own, so a second layer is not needed. Upload the font in Divi (the Upload button inside any font menu) or in WoodMart (Theme Settings → Typography → Custom fonts). Version 1.2.0 removed the earlier Divi and WoodMart support. Fonts and settings you saved are kept; Media Library copies made by the old WoodMart helper are not deleted, so WoodMart keeps working.
Nothing, unless you enabled the uninstall options under Settings. Font files and settings are kept by default.
Yes. Use the pfont_registered_fonts filter to add font records, pfont_cdn_presets to change the preset list and pfont_integrations to add or replace an integration adapter. Every hook is documented in the source with a docblock.
pfont prefix. Saved fonts and settings are moved to the new option names automatically on the first request after the update.ucf_* hook names that 1.4.0 still fired next to the pfont_* ones. Only the pfont_* hooks remain.pfont-{id} instead of ucf-{id}. Fonts picked in the Block Editor before this update must be picked again in the block or in Styles.pfont_ / PFONT_ prefix, because WordPress.org asks for a prefix of at least four characters. The old hook names still worked in this version and showed a deprecation notice.load_plugin_textdomain() call. WordPress loads the translations by itself.array_is_list() with an own helper, so the plugin keeps working with "Requires at least: 6.4".phpcs.xml.dist is now phpcs.xml (".dist" files are not allowed in the plugin directory).