WP-CLIwp easy-svg network list

wp easy-svg network list

List the icon sets of the main site that are shared with the network, and which sites receive them. Multisite only.

WP-CLI command, Easy SVG Pro, Status: Stable

This command shows every set of the main site that is marked as shared, with the sites it goes to.

Usage

wp easy-svg network list

When to use it

  • Before a new site joins, to see what it will receive.
  • In an audit of a network, to see which sets are shared and with whom.

Parameters

This command has no parameters and no options. The output is always a table.

Return value

stdouttable

One row per shared set with the columns id (the set's post id), set (its title) and sites: all, or the site ids separated by commas.

exit codeint

0 when the table was printed. 1 when the license, the free plugin's icon library or the WP-CLI feature is off, the command does not run on the main site of a multisite network, or the Collections feature is off.

Examples

wp easy-svg network list --url=https://network.example
+----+-------------+-------+
| id | set         | sites |
+----+-------------+-------+
| 42 | House icons | all   |
| 57 | Campaign    | 2,5   |
+----+-------------+-------+

Pitfalls

  • Drafts are listed too. The list reads the share mark on sets of any status, but only published sets reach the other sites.
  • Only the main site. On any other site of the network the command stops.