PluginProbe
Enter Addons – Ultimate Template Builder for Elementor / 2.2.8
Enter Addons – Ultimate Template Builder for Elementor v2.2.8
trunk 2.2.10 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4
enteraddons / classes / Activation.php

Activation.php in Enter Addons – Ultimate Template Builder for Elementor 2.2.8, at classes/Activation.php

39 lines 908 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Enteraddons\Classes;
3
4 /**
5 * Enteraddons admin class
6 *
7 * @package Enteraddons
8 * @author ThemeLooks
9 * @copyright 2022 ThemeLooks
10 * @license GPL-2.0-or-later
11 *
12 *
13 */
14
15 class Activation {
16
17 /**
18 * All Task for plugin activation
19 * @return void
20 */
21 public static function register_activation() {
22 // Active all widgets when activate the plugin
23 self::activationWidgetsSettingsMap();
24 // Load Font Awesome 4 Support
25 update_option( 'elementor_load_fa4_shim','yes' );
26 }
27 private static function activationWidgetsSettingsMap() {
28 $widgets = \Enteraddons\Inc\Widgets_List::getAllWidgets();
29 $checkExistData = get_option(ENTERADDONS_OPTION_KEY);
30
31 if( empty( $checkExistData['widgets'] ) ) {
32 $c = array_column( $widgets, 'name' );
33 $w['widgets'] = $c;
34 update_option( ENTERADDONS_OPTION_KEY, $w );
35 }
36
37 }
38
39 } // END CLASS