X7ROOT File Manager
Current Path:
/home/notabjze/tailoredplastiq.com/wp-content/plugins/wpforms-lite/src
home
/
notabjze
/
tailoredplastiq.com
/
wp-content
/
plugins
/
wpforms-lite
/
src
/
ðŸ“
..
📄
API.php
(923 B)
ðŸ“
Access
ðŸ“
Admin
ðŸ“
Db
ðŸ“
Emails
📄
ErrorHandler.php
(11.4 KB)
ðŸ“
Forms
ðŸ“
Frontend
ðŸ“
Helpers
ðŸ“
Integrations
ðŸ“
Lite
📄
Loader.php
(17.44 KB)
ðŸ“
Logger
ðŸ“
Migrations
ðŸ“
Providers
ðŸ“
Requirements
ðŸ“
SmartTags
ðŸ“
Tasks
📄
WPForms.php
(16.06 KB)
Editing: API.php
<?php namespace WPForms; use WPForms\Admin\Tools\Views\Import; /** * Class API. * * @since 1.8.6 */ class API { /** * Registry. * 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. * * @since 1.8.6 * * @var array[] */ private $registry = [ 'import_forms' => [ 'class' => Import::class, 'method' => 'import_forms', ], ]; /** * Magic method to call a method from registry. * * @since 1.8.6 * * @param string $name Method name. * @param array $args Arguments. * * @return mixed|null */ public function __call( string $name, array $args ) { $callback = $this->registry[ $name ] ?? null; if ( $callback === null ) { return null; } return call_user_func( [ $callback['class'], $callback['method'] ], ...$args ); } }
Upload File
Create Folder