wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_register_icon_collection › WordPress Function

Seit7.1.0
Veraltetn/v
› wp_register_icon_collection ( $slug, $args )
Parameter: (2)
  • (string) $slug Icon collection slug.
    Erforderlich: Ja
  • (array) $args { Arguments for registering an icon collection. @type string $label Required. A human-readable label for the icon collection. @type string $description Optional. A human-readable description for the icon collection. @type bool $public Optional. Whether the collection and its icons are exposed through the REST API, and therefore selectable in the editor's icon picker. Icons in non-public collections stay available to server-side code via \wp_get_icon. Default true. }
    Erforderlich: Ja
Gibt zurück:
  • (bool) True if the icon collection was registered successfully, else false.
Definiert in:
Codex:
Changelog:
  • 7.2.0

Registers a new icon collection.



Quellcode

function wp_register_icon_collection( $slug, $args ) {
	return WP_Icon_Collections_Registry::get_instance()->register( $slug, $args );
}