wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_register_icon_collection › WordPress Function

Desde7.1.0
Obsoleton/a
› wp_register_icon_collection ( $slug, $args )
Parâmetros: (2)
  • (string) $slug Icon collection slug.
    Required: Yes
  • (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 Ver página de detalhe para \wp_get_icon »

    " href="https://pt.wpseek.com/function/%5Cwp_get_icon/">\wp_get_icon
    . Default true. }
    Required: Yes
Retorna:
  • (bool) True if the icon collection was registered successfully, else false.
Definido em:
Codex:
Log de mudanças:
  • 7.2.0

Registers a new icon collection.



Fonte

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