acf_admin_tools::register_tool()publicACF 5.6.3

register_tool

This function will store a tool tool class

Метод класса: acf_admin_tools{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$acf_admin_tools = new acf_admin_tools();
$acf_admin_tools->register_tool( $class );
$class(строка) (обязательный)
-

Список изменений

С версии 5.6.3 Введена.

Код acf_admin_tools::register_tool() ACF 6.0.4

function register_tool( $class ) {

	$instance                       = new $class();
	$this->tools[ $instance->name ] = $instance;

}