PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.62
Timetics – Appointment Booking Calendar & Scheduling v1.0.62
1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 All 64 releases
timetics / vendor / themewinter / uninstaller_form / src / UninstallerForm.php

UninstallerForm.php in Timetics – Appointment Booking Calendar & Scheduling 1.0.62, at vendor/themewinter/uninstaller_form/src/UninstallerForm.php

35 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace UninstallerForm;
3
4 use ReflectionMethod;
5
6 /**
7 * UninstallerForm class for the uninstaller form.
8 *
9 * @since 1.0.0
10 *
11 * @package UNINSTALLER_FORM
12 */
13 class UninstallerForm {
14 /**
15 * UninstallerForm initiaization.
16 *
17 * @param string $plugin_name The name of the plugin.
18 * @param string $plugin_slug The slug of the plugin.
19 * @param string $plugin_file The path to the plugin file.
20 * @param string $plugin_text_domain The text domain of the plugin.
21 * @param string $script_handler The handle of the script to enqueue.
22 *
23 * @since 1.0.0
24 */
25 public static function init($plugin_name, $plugin_slug, $plugin_file,$plugin_text_domain, $script_handler,$webhook='') {
26 $reflection = new ReflectionMethod(HookRegistrar::class, '__construct');
27 $totalParams = $reflection->getNumberOfParameters();
28
29 if( $totalParams === 6){
30 $hook_registrar = new HookRegistrar($plugin_name, $plugin_slug, $plugin_file,$plugin_text_domain, $script_handler,$webhook);
31 $hook_registrar->register();
32 }
33 }
34 }
35