wp font collection <command>

Manages font collections.

In this article

Font collections are predefined sets of fonts that can be used in WordPress. Collections are registered by WordPress core or themes and cannot be created or deleted via the command line.

Examples

# List all font collections
$ wp font collection list
+------------------+-------------------+---------+
| slug             | name              | count   |
+------------------+-------------------+---------+
| google-fonts     | Google Fonts      | 1500    |
+------------------+-------------------+---------+

# Get details about a specific font collection
$ wp font collection get google-fonts
+-------+------------------+
| Field | Value            |
+-------+------------------+
| slug  | google-fonts     |
| name  | Google Fonts     |
+-------+------------------+

Subcommands

NameDescription
wp font collection get

Gets details about a registered font collection.

wp font collection is-registered

Checks if a font collection is registered.

wp font collection list

Lists registered font collections.

wp font collection list-categories

Lists categories in a collection.

wp font collection list-families

Lists font families in a collection.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.