|
Server : Apache System : Linux p3plmcpnl504569.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64 User : vvx4wizpbi9m ( 10307748) PHP Version : 8.3.32 Disable Function : NONE Directory : /home/vvx4wizpbi9m/.trash/wpforms-signatures/src/ | |
|
Path: /home/vvx4wizpbi9m/.trash/wpforms-signatures/src/Plugin.php
Size: 1.21 KB
Permissions: 0644
<?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,
]
);
}
}