ACF::get_instance()
Returns an instance or null if doesn't exist.
Метод класса: ACF{}
Хуков нет.
Возвращает
Объект
.
Использование
$ACF = new ACF(); $ACF->get_instance( $class );
- $class(строка) (обязательный)
- The instance class name.
Список изменений
С версии 5.6.9 | Введена. |
Код ACF::get_instance() ACF::get instance ACF 6.0.4
public function get_instance( $class ) { $name = strtolower( $class ); return isset( $this->instances[ $name ] ) ? $this->instances[ $name ] : null; }