| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/excellentvege/wp-content/plugins/wpforms-signatures/src/ |
Upload File : |
<?php
namespace WPFormsSignatures;
use WPForms_Updater;
/**
* Signature field.
*
* @since 1.0.0
*/
class Plugin {
/**
* Get a single instance of the addon.
*
* @since 1.8.0
*
* @return Plugin
*/
public static function get_instance(): Plugin {
static $instance;
if ( ! $instance ) {
$instance = new self();
}
return $instance;
}
/**
* Init class.
*
* @since 1.8.0
*/
public function init(): void {
_deprecated_function( __METHOD__, '1.12.0 of the WPForms Signatures addon.' );
new Fields\Signature();
}
/**
* Load the plugin updater.
*
* @since 1.0.0
* @deprecated 1.12.0
*
* @todo Remove with core 1.9.2
*
* @param string $key WPForms license key.
*/
public function updater( $key ) {
_deprecated_function( __METHOD__, '1.12.0 of the WPForms Signatures plugin' );
new WPForms_Updater(
[
'plugin_name' => 'WPForms Signatures',
'plugin_slug' => 'wpforms-signatures',
'plugin_path' => plugin_basename( WPFORMS_SIGNATURES_FILE ),
'plugin_url' => trailingslashit( plugin_dir_url( WPFORMS_SIGNATURES_FILE ) ),
'remote_url' => WPFORMS_UPDATER_API,
'version' => WPFORMS_SIGNATURES_VERSION,
'key' => $key,
]
);
}
}