PluginProbe
Elementor Website Builder – more than just a page builder / 3.4.2
Elementor Website Builder – more than just a page builder v3.4.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / core / common / modules / connect / apps / common-app.php

common-app.php in Elementor Website Builder – more than just a page builder 3.4.2, at core/common/modules/connect/apps/common-app.php

36 lines 674 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Core\Common\Modules\Connect\Apps;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // Exit if accessed directly
6 }
7
8 abstract class Common_App extends Base_User_App {
9
10 protected static $common_data = null;
11
12 /**
13 * @since 2.3.0
14 * @access public
15 */
16 public function get_option_name() {
17 return static::OPTION_NAME_PREFIX . 'common_data';
18 }
19
20 /**
21 * @since 2.3.0
22 * @access protected
23 */
24 protected function init_data() {
25 if ( is_null( self::$common_data ) ) {
26 self::$common_data = get_user_option( static::get_option_name() );
27
28 if ( ! self::$common_data ) {
29 self::$common_data = [];
30 };
31 }
32
33 $this->data = & self::$common_data;
34 }
35 }
36