[wp-trac] [WordPress Trac] #49166: need a function to know if a dashicon exists.

WordPress Trac noreply at wordpress.org
Fri Jan 10 18:27:25 UTC 2020


#49166: need a function to know if a dashicon exists.
------------------------------------------+-----------------------------
 Reporter:  sebastienserre                |      Owner:  (none)
     Type:  defect (bug)                  |     Status:  new
 Priority:  normal                        |  Milestone:  Awaiting Review
Component:  General                       |    Version:
 Severity:  normal                        |   Keywords:  2nd-opinion
  Focuses:  ui, administration, template  |
------------------------------------------+-----------------------------
 Hello,

 Is there a way to know if a dashicon exist or not?

 I think there's currently no function and I don't really know if this is
 possible to create it or not...

 In my mind, it would be a function as <code>is_dashicon_exists(
 'dashicons-linkedin')</code> returning true or false.

 Do you think it should be possible to create?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49166>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list