acf_admin_tools::register_tool
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 admin tools::register tool ACF 6.4.2
function register_tool( $class ) {
$instance = new $class();
$this->tools[ $instance->name ] = $instance;
}