WP_Block_Bindings_Registry::get_instance()
Utility method to retrieve the main instance of the class.
The instance will be created if it does not exist yet.
Метод класса: WP_Block_Bindings_Registry{}
Хуков нет.
Возвращает
WP_Block_Bindings_Registry
. The main instance.
Использование
$result = WP_Block_Bindings_Registry::get_instance();
Список изменений
С версии 6.5.0 | Введена. |
Код WP_Block_Bindings_Registry::get_instance() WP Block Bindings Registry::get instance WP 6.7.1
public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; }