WP_Block_Supports::get_instance() – Utility method to retrieve the main instance of the class.

You appear to be a bot. Output may be restricted

Description

Utility method to retrieve the main instance of the class.

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

Usage

$WP_Block_Supports = WP_Block_Supports::get_instance();

Parameters

Returns

WP_Block_Supports The main instance.

Source

File name: wordpress/wp-includes/class-wp-block-supports.php
Lines:

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

    return self::$instance;
  }
 

 View on GitHub View on Trac