Get Custom Fonts Settings Ability: Read Uploaded Font Configuration in WordPress

Key Takeaways

  • nexter/get-custom-fonts ability reads the current custom fonts configuration in Nexter Extension, including font names and media attachment IDs.
  • Custom Fonts feature must be enabled in Nexter Extension, verified using nexter/list-extensions before uploading font files to WordPress Media Library.
  • Ability returns a full custom fonts configuration object with font family names, media attachment IDs, and weight or style variations like 400 and 700.
Table of Contents

The nexter/get-custom-fonts ability returns the current custom fonts configuration in Nexter Extension. It reads font names, media attachment IDs, and weight or style variations for each uploaded font. This is a read-only ability. Use it to inspect what custom fonts are configured before making updates with nexter/update-custom-fonts.

Key Takeaways

This is a read-only ability. It does not modify any font settings or files.

It returns font families with their media attachment IDs and available weight or style variations.

This ability accepts no parameters. It always returns the full current configuration.

Call this ability before nexter/update-custom-fonts to review current font data and avoid overwriting existing entries.

Required Setup

The Custom Fonts feature must be enabled in Nexter Extension. Use nexter/list-extensions to confirm it is active. Font files must be uploaded to the WordPress Media Library (WOFF2, TTF, or OTF format) before they appear in the configuration.

What It Returns

The ability returns the full custom fonts configuration object.

Font family names for each configured custom font.

Media attachment IDs for the uploaded font files.

Weight and style variations per font, such as 400, 700, 400i (italic), and variable font data.

When to Use This Ability

Read current font configuration before calling nexter/update-custom-fonts to avoid overwriting existing data.

Audit which custom fonts and weights are currently active on the site.

Retrieve attachment IDs of uploaded font files for reference in other operations.

Related Documentation

nexter/update-custom-fonts: Enable custom fonts and add or edit font families

nexter/list-extensions: Confirm the Custom Fonts extension is enabled

About the Author

sandip patel

WordPress Developer at POSIMYTH Innovations I am a passionate WordPress Developer at POSIMYTH Innovations, where I focus on building high-performance products and cutting-edge web experiences. Currently, I contribute to the development of major projects including The Plus Addons for Elementor, Sticky Header for Elementor, RankReady AI (LLM & SEO), and the SproutOS MCP server integration. I love bridging the gap between WordPress core functionality and modern AI capabilities. Beyond standard development.

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!