PluginProbe
Elementor Website Builder – more than just a page builder / 4.2.4
Elementor Website Builder – more than just a page builder v4.2.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/admin/admin.php +17 -2 4.3.0-beta24.2.4 View file →
@@ -242,10 +242,10 @@
242 242 <div id="elementor-switch-mode">
243 243 <input id="elementor-switch-mode-input" type="hidden" name="_elementor_post_mode" value="<?php echo esc_attr( $document->is_built_with_elementor() ); ?>" />
244 244 <button id="elementor-switch-mode-button" type="button" class="button button-primary button-hero">
245 245 <span class="elementor-switch-mode-on">
246 - <i class="eicon-wordpress" aria-hidden="true"></i>
247 - <?php echo esc_html__( 'Edit with WordPress', 'elementor' ); ?>
246 + <i class="eicon-arrow-<?php echo ( is_rtl() ) ? 'right' : 'left'; ?>" aria-hidden="true"></i>
247 + <?php echo esc_html__( 'Back to WordPress Editor', 'elementor' ); ?>
248 248 </span>
249 249 <span class="elementor-switch-mode-off">
250 250 <i class="eicon-elementor-square" aria-hidden="true"></i>
251 251 <?php echo esc_html__( 'Edit with Elementor', 'elementor' ); ?>
@@ -1181,8 +1181,9 @@
1181 1181 }
1182 1182
1183 1183 public function register_ajax_hints( $ajax_manager ) {
1184 1184 $ajax_manager->register_ajax_action( 'elementor_image_optimization_campaign', [ $this, 'ajax_set_image_optimization_campaign' ] );
1185 + $ajax_manager->register_ajax_action( 'elementor_core_site_mailer_campaign', [ $this, 'ajax_site_mailer_campaign' ] );
1185 1186 $ajax_manager->register_ajax_action( 'elementor_core_ally_campaign', [ $this, 'ajax_ally_campaign' ] );
1186 1187 }
1187 1188
1188 1189 public function ajax_ally_campaign( $request ) {
@@ -1210,6 +1211,20 @@
1210 1211 'medium' => sanitize_key( $request['medium'] ?? '' ),
1211 1212 ];
1212 1213
1213 1214 set_transient( 'elementor_image_optimization_campaign', $campaign_data, 30 * DAY_IN_SECONDS );
1215 + }
1216 +
1217 + public function ajax_site_mailer_campaign( $request ) {
1218 + if ( ! current_user_can( 'install_plugins' ) ) {
1219 + return;
1220 + }
1221 +
1222 + $campaign_data = [
1223 + 'campaign' => sanitize_key( $request['campaign'] ?? '' ),
1224 + 'source' => sanitize_key( $request['source'] ?? '' ),
1225 + 'medium' => sanitize_key( $request['medium'] ?? '' ),
1226 + ];
1227 +
1228 + set_transient( 'elementor_site_mailer_campaign', $campaign_data, 30 * DAY_IN_SECONDS );
1214 1229 }
1215 1230 }