WP_Icons_Registry::get_instance
Utility method to retrieve the main instance of the class.
The instance will be created if it does not exist yet.
Method of the class: WP_Icons_Registry{}
No Hooks.
Returns
WP_Icons_Registry. The main instance.
Usage
$result = WP_Icons_Registry::get_instance();
WP_Icons_Registry::get_instance() WP Icons Registry::get instance code WP 7.0
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}