Yoast_Plugin_Conflict::get_instance()
For the use of singleton pattern. Create instance of itself and return this instance.
Метод класса: Yoast_Plugin_Conflict{}
Хуков нет.
Возвращает
Yoast_Plugin_Conflict
.
Использование
$result = Yoast_Plugin_Conflict::get_instance( $class_name );
- $class_name(строка)
- Give the classname to initialize. If classname is false (empty) it will use it's own __CLASS__.
По умолчанию: ''
Код Yoast_Plugin_Conflict::get_instance() Yoast Plugin Conflict::get instance Yoast 23.4
public static function get_instance( $class_name = '' ) { if ( is_null( self::$instance ) ) { if ( ! is_string( $class_name ) || $class_name === '' ) { $class_name = self::class; } self::$instance = new $class_name(); } return self::$instance; }