WP_Icons_Registry::get_instance(): WP_Icons_Registry

In this article

Utility method to retrieve the main instance of the class.

Description

The instance will be created if it does not exist yet.

Return

WP_Icons_Registry The main instance.

Source

public static function get_instance() {
	if ( null === self::$instance ) {
		self::$instance = new self();
	}

	return self::$instance;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.