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. }
    Erforderlich: Ja
Gibt zurück:
  • (bool) True if the icon collection was registered successfully, else false.
Definiert in:
Codex:

Registers a new icon collection.



Quellcode

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