PluginProbe
Elementor Website Builder – more than just a page builder / 3.28.4
Elementor Website Builder – more than just a page builder v3.28.4
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
← All changes | core/common/modules/connect/module.php +4 -14 4.2.43.28.4 View file →
@@ -4,14 +4,12 @@
4 4 use Elementor\Core\Base\Module as BaseModule;
5 5 use Elementor\Core\Common\Modules\Connect\Apps\Base_App;
6 6 use Elementor\Core\Common\Modules\Connect\Apps\Common_App;
7 7 use Elementor\Core\Common\Modules\Connect\Apps\Connect;
8 -use Elementor\Core\Common\Modules\Connect\Apps\Feedback;
9 8 use Elementor\Core\Common\Modules\Connect\Apps\Library;
10 9 use Elementor\Plugin;
11 10 use Elementor\Utils;
12 11 use WP_User_Query;
13 -use Elementor\Core\Common\Modules\Connect\Rest\Rest_Api;
14 12
15 13 if ( ! defined( 'ABSPATH' ) ) {
16 14 exit; // Exit if accessed directly.
17 15 }
@@ -75,9 +73,8 @@
75 73 public function __construct() {
76 74 $this->registered_apps = [
77 75 'connect' => Connect::get_class_name(),
78 76 'library' => Library::get_class_name(),
79 - 'feedback' => Feedback::get_class_name(),
80 77 ];
81 78
82 79 // When using REST API the parent module is construct after the action 'elementor/init'
83 80 // so this part of code make sure to register the module "apps".
@@ -87,10 +84,8 @@
87 84 // Note: The priority 11 is for allowing plugins to add their register callback on elementor init.
88 85 add_action( 'elementor/init', [ $this, 'init' ], 11 );
89 86 }
90 87
91 - add_action( 'rest_api_init', [ $this, 'register_rest_routes' ] );
92 -
93 88 add_filter( 'elementor/tracker/send_tracking_data_params', function ( $params ) {
94 89 return $this->add_tracking_data( $params );
95 90 } );
96 91 }
@@ -131,15 +126,15 @@
131 126 *
132 127 * @since 2.3.0
133 128 * @access public
134 129 *
135 - * @param string $slug App slug.
136 - * @param string $class_name App full class name.
130 + * @param string $slug App slug.
131 + * @param string $class App full class name.
137 132 *
138 133 * @return self The updated apps manager instance.
139 134 */
140 - public function register_app( $slug, $class_name ) {
141 - $this->registered_apps[ $slug ] = $class_name;
135 + public function register_app( $slug, $class ) {
136 + $this->registered_apps[ $slug ] = $class;
142 137
143 138 return $this;
144 139 }
145 140
@@ -261,11 +256,6 @@
261 256 'users' => $users,
262 257 ];
263 258
264 259 return $params;
265 - }
266 -
267 - public function register_rest_routes() {
268 - $rest_api = new Rest_Api();
269 - $rest_api->register_routes();
270 260 }
271 261 }