use WPForms\Admin\Tools\Views\Import;
* Contains name of the class and method to be called.
* For non-static methods, should contain the id to operate via wpforms->get( 'class' ).
* @todo Add non-static methods processing.
'class' => Import::class,
'method' => 'import_forms',
* Magic method to call a method from registry.
* @param string $name Method name.
* @param array $args Arguments.
public function __call( string $name, array $args ) {
$callback = $this->registry[ $name ] ?? null;
if ( $callback === null ) {
return call_user_func( [ $callback['class'], $callback['method'] ], ...$args );