WP_Block_Supports::get_instance(): WP_Block_Supports

Utility method to retrieve the main instance of the class.


Description

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


Top ↑

Return

WP_Block_Supports The main instance.


Top ↑

Source

File: wp-includes/class-wp-block-supports.php. View all references

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

	return self::$instance;
}


Top ↑

Changelog

Changelog
Version Description
5.6.0 Introduced.

Top ↑

User Contributed Notes

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