acf_admin_tools::register_tool
register_tool
This function will store a tool tool class
Method of the class: acf_admin_tools{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_admin_tools = new acf_admin_tools(); $acf_admin_tools->register_tool( $class );
- $class(string) (required)
- .
Changelog
| Since 5.6.3 | Introduced. |
acf_admin_tools::register_tool() acf admin tools::register tool code ACF 6.0.4
function register_tool( $class ) {
$instance = new $class();
$this->tools[ $instance->name ] = $instance;
}