Update Custom Fonts Ability: Manage Custom Font Settings in WordPress

Key Takeaways

  • Update Custom Fonts Ability in Nexter Extension allows toggling custom font settings on or off.
  • Each font entry supports both simplefont and variablefont formats, replacing the existing fonts list entirely when provided.
  • Use nexter/get-custom-fonts-settings to read the current font configuration before making updates.
Table of Contents

The nexter/update-custom-fonts ability updates the custom fonts configuration in Nexter Extension. You can toggle the feature on or off and provide a list of custom fonts to load. Each font entry supports both standard and variable font formats. This ability replaces the full fonts list on each call.

Key Takeaways

Both enabled and fonts parameters are optional. You can update either one independently.

When provided, the fonts array replaces the existing fonts list entirely.

Each font object supports both simplefont and variablefont subfields for different font types.

Use nexter/get-custom-fonts-settings to read current font configuration before making changes.

Required Setup

This ability ships with Nexter Extension (Free). If you do not have it installed, follow the guide on how to install and activate Nexter Extension first.

Parameters

**enabled** (boolean, optional) controls whether the custom fonts feature is active.

**fonts** (array, optional) is the full list of font objects to register. Each object may contain simplefont and variablefont data.

What It Returns

The ability returns success (boolean) and the updated settings object reflecting the new custom fonts configuration.

When to Use This Ability

Register a new custom font on a site without using the WordPress admin UI.

Enable or disable the custom fonts feature as part of a site setup workflow.

Replace the full font list when migrating or cloning font configuration between sites.

Related Documentation

Get Custom Fonts Settings Ability: nexter/get-custom-fonts-settings

Toggle Extension Ability: nexter/toggle-extension

Update Performance Settings Ability: nexter/update-performance-settings

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!